home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / scheme / pcscheme / geneva / sources.exe / DOC / MANUAL.TEX < prev    next >
LaTeX Document  |  1993-10-09  |  59.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file data default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CRLF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 64 6f 63 75 6d 65 6e | 74 73 74 79 6c 65 5b 6d |\documen|tstyle[m|
|00000010| 75 6c 74 69 63 6f 6c 2c | 6d 61 6b 65 69 64 78 2c |ulticol,|makeidx,|
|00000020| 73 75 70 65 72 74 61 62 | 2c 76 72 62 69 6e 70 75 |supertab|,vrbinpu|
|00000030| 74 5d 7b 72 65 70 6f 72 | 74 7d 0d 0a 0d 0a 5c 6d |t]{repor|t}....\m|
|00000040| 61 6b 65 69 6e 64 65 78 | 0d 0a 0d 0a 5c 73 65 74 |akeindex|....\set|
|00000050| 6c 65 6e 67 74 68 7b 5c | 6f 64 64 73 69 64 65 6d |length{\|oddsidem|
|00000060| 61 72 67 69 6e 7d 7b 30 | 63 6d 7d 0d 0a 5c 73 65 |argin}{0|cm}..\se|
|00000070| 74 6c 65 6e 67 74 68 7b | 5c 65 76 65 6e 73 69 64 |tlength{|\evensid|
|00000080| 65 6d 61 72 67 69 6e 7d | 7b 30 63 6d 7d 0d 0a 5c |emargin}|{0cm}..\|
|00000090| 73 65 74 6c 65 6e 67 74 | 68 7b 5c 74 6f 70 6d 61 |setlengt|h{\topma|
|000000a0| 72 67 69 6e 7d 7b 30 63 | 6d 7d 0d 0a 5c 73 65 74 |rgin}{0c|m}..\set|
|000000b0| 6c 65 6e 67 74 68 7b 5c | 74 65 78 74 68 65 69 67 |length{\|textheig|
|000000c0| 68 74 7d 7b 32 32 63 6d | 7d 0d 0a 5c 73 65 74 6c |ht}{22cm|}..\setl|
|000000d0| 65 6e 67 74 68 7b 5c 74 | 65 78 74 77 69 64 74 68 |ength{\t|extwidth|
|000000e0| 7d 7b 31 36 63 6d 7d 0d | 0a 0d 0a 5c 6e 65 77 63 |}{16cm}.|...\newc|
|000000f0| 6f 6d 6d 61 6e 64 7b 5c | 70 63 73 7d 7b 7b 5c 6d |ommand{\|pcs}{{\m|
|00000100| 65 64 69 75 6d 73 65 72 | 69 65 73 5c 73 63 20 50 |ediumser|ies\sc P|
|00000110| 63 53 63 68 65 6d 65 7d | 7d 0d 0a 5c 6e 65 77 63 |cScheme}|}..\newc|
|00000120| 6f 6d 6d 61 6e 64 7b 5c | 65 73 73 65 6e 74 69 61 |ommand{\|essentia|
|00000130| 6c 7d 7b 5c 6d 61 72 67 | 69 6e 70 61 72 7b 24 5c |l}{\marg|inpar{$\|
|00000140| 68 6f 6f 6b 6c 65 66 74 | 61 72 72 6f 77 24 7d 7d |hookleft|arrow$}}|
|00000150| 0d 0a 5c 6e 65 77 63 6f | 6d 6d 61 6e 64 7b 5c 6f |..\newco|mmand{\o|
|00000160| 70 74 7d 5b 31 5d 7b 7b | 5c 6e 6f 72 6d 61 6c 73 |pt}[1]{{|\normals|
|00000170| 68 61 70 65 5b 7d 23 31 | 7b 5c 6e 6f 72 6d 61 6c |hape[}#1|{\normal|
|00000180| 73 68 61 70 65 5d 7d 7d | 0d 0a 5c 6e 65 77 63 6f |shape]}}|..\newco|
|00000190| 6d 6d 61 6e 64 7b 5c 74 | 68 75 6e 6b 7d 5b 31 5d |mmand{\t|hunk}[1]|
|000001a0| 7b 5c 73 75 62 73 65 63 | 74 69 6f 6e 2a 7b 5c 6d |{\subsec|tion*{\m|
|000001b0| 65 64 69 75 6d 73 65 72 | 69 65 73 5c 74 74 20 28 |ediumser|ies\tt (|
|000001c0| 23 31 29 7d 5c 74 74 69 | 6e 64 65 78 7b 23 31 7d |#1)}\tti|ndex{#1}|
|000001d0| 7d 0d 0a 5c 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c |}..\newc|ommand{\|
|000001e0| 65 73 74 68 75 6e 6b 7d | 5b 31 5d 7b 5c 73 75 62 |esthunk}|[1]{\sub|
|000001f0| 73 65 63 74 69 6f 6e 2a | 7b 5c 6d 65 64 69 75 6d |section*|{\medium|
|00000200| 73 65 72 69 65 73 5c 74 | 74 20 28 23 31 29 5c 65 |series\t|t (#1)\e|
|00000210| 73 73 65 6e 74 69 61 6c | 7d 5c 74 74 69 6e 64 65 |ssential|}\ttinde|
|00000220| 78 7b 23 31 7d 7d 0d 0a | 5c 6e 65 77 63 6f 6d 6d |x{#1}}..|\newcomm|
|00000230| 61 6e 64 7b 5c 66 75 6e | 63 7d 5b 32 5d 7b 5c 73 |and{\fun|c}[2]{\s|
|00000240| 75 62 73 65 63 74 69 6f | 6e 2a 7b 5c 6d 65 64 69 |ubsectio|n*{\medi|
|00000250| 75 6d 73 65 72 69 65 73 | 5c 74 74 20 28 23 31 20 |umseries|\tt (#1 |
|00000260| 5c 72 6d 5c 69 74 20 23 | 32 5c 6e 6f 72 6d 61 6c |\rm\it #|2\normal|
|00000270| 73 68 61 70 65 5c 74 74 | 29 7d 5c 74 74 69 6e 64 |shape\tt|)}\ttind|
|00000280| 65 78 7b 23 31 7d 7d 0d | 0a 5c 6e 65 77 63 6f 6d |ex{#1}}.|.\newcom|
|00000290| 6d 61 6e 64 7b 5c 65 73 | 66 75 6e 63 7d 5b 32 5d |mand{\es|func}[2]|
|000002a0| 7b 5c 73 75 62 73 65 63 | 74 69 6f 6e 2a 7b 5c 6d |{\subsec|tion*{\m|
|000002b0| 65 64 69 75 6d 73 65 72 | 69 65 73 5c 74 74 20 28 |ediumser|ies\tt (|
|000002c0| 23 31 20 5c 72 6d 5c 69 | 74 20 23 32 5c 6e 6f 72 |#1 \rm\i|t #2\nor|
|000002d0| 6d 61 6c 73 68 61 70 65 | 5c 74 74 29 5c 65 73 73 |malshape|\tt)\ess|
|000002e0| 65 6e 74 69 61 6c 7d 5c | 74 74 69 6e 64 65 78 7b |ential}\|ttindex{|
|000002f0| 23 31 7d 7d 0d 0a 0d 0a | 5c 6e 65 77 63 6f 6d 6d |#1}}....|\newcomm|
|00000300| 61 6e 64 7b 5c 61 74 74 | 7d 7b 7b 5c 73 63 20 41 |and{\att|}{{\sc A|
|00000310| 74 74 2d 34 30 30 7d 5c | 69 6e 64 65 78 7b 41 54 |tt-400}\|index{AT|
|00000320| 54 34 30 30 40 7b 5c 73 | 63 20 41 74 74 2d 34 30 |T400@{\s|c Att-40|
|00000330| 30 7d 7d 7d 0d 0a 5c 6e | 65 77 63 6f 6d 6d 61 6e |0}}}..\n|ewcomman|
|00000340| 64 7b 5c 63 67 61 7d 7b | 7b 5c 73 63 20 43 67 61 |d{\cga}{|{\sc Cga|
|00000350| 7d 5c 69 6e 64 65 78 7b | 43 47 41 40 7b 5c 73 63 |}\index{|CGA@{\sc|
|00000360| 20 43 67 61 7d 7d 7d 0d | 0a 5c 6e 65 77 63 6f 6d | Cga}}}.|.\newcom|
|00000370| 6d 61 6e 64 7b 5c 6d 63 | 67 61 7d 7b 7b 5c 73 63 |mand{\mc|ga}{{\sc|
|00000380| 20 4d 63 67 61 7d 5c 69 | 6e 64 65 78 7b 4d 43 47 | Mcga}\i|ndex{MCG|
|00000390| 41 40 7b 5c 73 63 20 4d | 63 67 61 7d 7d 7d 0d 0a |A@{\sc M|cga}}}..|
|000003a0| 5c 6e 65 77 63 6f 6d 6d | 61 6e 64 7b 5c 65 67 61 |\newcomm|and{\ega|
|000003b0| 7d 7b 7b 5c 73 63 20 45 | 67 61 7d 5c 69 6e 64 65 |}{{\sc E|ga}\inde|
|000003c0| 78 7b 45 47 41 40 7b 5c | 73 63 20 45 67 61 7d 7d |x{EGA@{\|sc Ega}}|
|000003d0| 7d 0d 0a 5c 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c |}..\newc|ommand{\|
|000003e0| 68 65 72 63 7d 7b 7b 5c | 73 63 20 48 65 72 63 75 |herc}{{\|sc Hercu|
|000003f0| 6c 65 73 7d 5c 69 6e 64 | 65 78 7b 48 45 52 43 55 |les}\ind|ex{HERCU|
|00000400| 4c 45 53 40 7b 5c 73 63 | 20 48 65 72 63 75 6c 65 |LES@{\sc| Hercule|
|00000410| 73 7d 7d 7d 0d 0a 5c 6e | 65 77 63 6f 6d 6d 61 6e |s}}}..\n|ewcomman|
|00000420| 64 7b 5c 76 67 61 7d 7b | 7b 5c 73 63 20 56 67 61 |d{\vga}{|{\sc Vga|
|00000430| 7d 5c 69 6e 64 65 78 7b | 56 47 41 40 7b 5c 73 63 |}\index{|VGA@{\sc|
|00000440| 20 56 67 61 7d 7d 7d 0d | 0a 5c 6e 65 77 63 6f 6d | Vga}}}.|.\newcom|
|00000450| 6d 61 6e 64 7b 5c 69 62 | 6d 7d 7b 7b 5c 73 63 20 |mand{\ib|m}{{\sc |
|00000460| 49 62 6d 2d 38 35 31 34 | 7d 5c 69 6e 64 65 78 7b |Ibm-8514|}\index{|
|00000470| 49 42 4d 38 35 31 34 40 | 7b 5c 73 63 20 49 62 6d |IBM8514@|{\sc Ibm|
|00000480| 2d 38 35 31 34 7d 7d 7d | 0d 0a 5c 6e 65 77 63 6f |-8514}}}|..\newco|
|00000490| 6d 6d 61 6e 64 7b 5c 68 | 70 7d 7b 7b 5c 73 63 20 |mmand{\h|p}{{\sc |
|000004a0| 48 70 39 35 6c 78 7d 5c | 69 6e 64 65 78 7b 48 50 |Hp95lx}\|index{HP|
|000004b0| 39 35 4c 58 40 7b 5c 73 | 63 20 48 70 39 35 6c 78 |95LX@{\s|c Hp95lx|
|000004c0| 7d 7d 7d 0d 0a 5c 6e 65 | 77 63 6f 6d 6d 61 6e 64 |}}}..\ne|wcommand|
|000004d0| 7b 5c 73 76 67 61 7d 7b | 7b 5c 73 63 20 53 75 70 |{\svga}{|{\sc Sup|
|000004e0| 65 72 2d 56 67 61 7d 5c | 69 6e 64 65 78 7b 53 56 |er-Vga}\|index{SV|
|000004f0| 47 41 40 7b 5c 73 63 20 | 53 75 70 65 72 2d 56 67 |GA@{\sc |Super-Vg|
|00000500| 61 7d 7d 7d 0d 0a 0d 0a | 5c 6e 65 77 63 6f 6d 6d |a}}}....|\newcomm|
|00000510| 61 6e 64 7b 5c 74 74 69 | 6e 64 65 78 7d 5b 31 5d |and{\tti|ndex}[1]|
|00000520| 7b 5c 69 6e 64 65 78 7b | 23 31 40 7b 5c 74 74 20 |{\index{|#1@{\tt |
|00000530| 23 31 7d 7d 7d 0d 0a 5c | 6e 65 77 63 6f 6d 6d 61 |#1}}}..\|newcomma|
|00000540| 6e 64 7b 5c 69 74 74 69 | 6e 64 65 78 7d 5b 31 5d |nd{\itti|ndex}[1]|
|00000550| 7b 5c 69 6e 64 65 78 7b | 23 31 40 7b 5c 69 74 74 |{\index{|#1@{\itt|
|00000560| 20 27 23 31 7d 7d 7d 0d | 0a 5c 6e 65 77 63 6f 6d | '#1}}}.|.\newcom|
|00000570| 6d 61 6e 64 7b 5c 6d 73 | 67 7d 5b 33 5d 7b 7b 5c |mand{\ms|g}[3]{{\|
|00000580| 72 61 67 67 65 64 72 69 | 67 68 74 20 7b 5c 69 74 |raggedri|ght {\it|
|00000590| 74 20 27 23 31 5c 74 74 | 69 6e 64 65 78 7b 23 31 |t '#1\tt|index{#1|
|000005a0| 7d 7d 20 7b 5c 69 74 20 | 23 32 7d 20 5c 5c 20 5c |}} {\it |#2} \\ \|
|000005b0| 68 66 69 6c 6c 20 24 5c | 52 69 67 68 74 61 72 72 |hfill $\|Rightarr|
|000005c0| 6f 77 24 20 7b 5c 69 74 | 20 23 33 7d 7d 7d 0d 0a |ow$ {\it| #3}}}..|
|000005d0| 5c 6e 65 77 63 6f 6d 6d | 61 6e 64 7b 5c 4d 53 47 |\newcomm|and{\MSG|
|000005e0| 7d 5b 32 5d 7b 7b 5c 72 | 61 67 67 65 64 72 69 67 |}[2]{{\r|aggedrig|
|000005f0| 68 74 20 7b 5c 69 74 74 | 20 27 23 31 5c 74 74 69 |ht {\itt| '#1\tti|
|00000600| 6e 64 65 78 7b 23 31 7d | 7d 20 7b 5c 69 74 20 23 |ndex{#1}|} {\it #|
|00000610| 32 7d 7d 7d 0d 0a 5c 6e | 65 77 63 6f 6d 6d 61 6e |2}}}..\n|ewcomman|
|00000620| 64 7b 5c 4c 69 73 74 7d | 5b 31 5d 7b 7b 5c 74 74 |d{\List}|[1]{{\tt|
|00000630| 20 28 7b 5c 72 6d 5c 69 | 74 20 23 31 7d 29 7d 7d | ({\rm\i|t #1})}}|
|00000640| 0d 0a 5c 6e 65 77 63 6f | 6d 6d 61 6e 64 7b 5c 53 |..\newco|mmand{\S|
|00000650| 79 7d 5b 31 5d 7b 7b 5c | 69 74 74 20 27 23 31 7d |y}[1]{{\|itt '#1}|
|00000660| 7d 0d 0a 5c 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c |}..\newc|ommand{\|
|00000670| 53 59 7d 5b 31 5d 7b 7b | 5c 69 74 74 20 27 23 31 |SY}[1]{{|\itt '#1|
|00000680| 7d 5c 69 74 74 69 6e 64 | 65 78 7b 23 31 7d 7d 0d |}\ittind|ex{#1}}.|
|00000690| 0a 0d 0a 5c 66 6f 6e 74 | 5c 69 74 74 3d 63 6d 69 |...\font|\itt=cmi|
|000006a0| 74 74 31 30 0d 0a 0d 0a | 5c 62 65 67 69 6e 7b 64 |tt10....|\begin{d|
|000006b0| 6f 63 75 6d 65 6e 74 7d | 0d 0a 5c 74 69 74 6c 65 |ocument}|..\title|
|000006c0| 7b 50 43 20 53 63 68 65 | 6d 65 2d 2d 47 65 6e 65 |{PC Sche|me--Gene|
|000006d0| 76 61 3a 5c 5c 55 73 65 | 72 27 73 20 64 6f 63 75 |va:\\Use|r's docu|
|000006e0| 6d 65 6e 74 61 74 69 6f | 6e 7d 0d 0a 5c 61 75 74 |mentatio|n}..\aut|
|000006f0| 68 6f 72 7b 4d 61 72 63 | 20 56 75 69 6c 6c 65 75 |hor{Marc| Vuilleu|
|00000700| 6d 69 65 72 5c 61 6e 64 | 20 4c 61 72 72 79 20 42 |mier\and| Larry B|
|00000710| 61 72 74 68 6f 6c 64 69 | 7d 0d 0a 5c 6d 61 6b 65 |artholdi|}..\make|
|00000720| 74 69 74 6c 65 0d 0a 5c | 62 65 67 69 6e 7b 61 62 |title..\|begin{ab|
|00000730| 73 74 72 61 63 74 7d 0d | 0a 5c 62 65 67 69 6e 7b |stract}.|.\begin{|
|00000740| 66 6c 75 73 68 72 69 67 | 68 74 7d 0d 0a 5c 65 6d |flushrig|ht}..\em|
|00000750| 20 60 60 4d 79 20 45 6e | 67 6c 69 73 68 20 69 73 | ``My En|glish is|
|00000760| 20 77 6f 72 73 65 20 74 | 68 61 6e 20 74 68 65 20 | worse t|han the |
|00000770| 67 61 72 64 65 6e 20 6f | 66 20 6d 79 20 75 6e 63 |garden o|f my unc|
|00000780| 6c 65 27 27 20 5c 5c 0d | 0a 2d 2d 2d 55 6e 6b 6e |le'' \\.|.---Unkn|
|00000790| 6f 77 6e 20 43 68 69 6e | 65 73 65 20 70 68 69 6c |own Chin|ese phil|
|000007a0| 6f 73 6f 70 68 65 72 2c | 20 61 62 6f 75 74 20 34 |osopher,| about 4|
|000007b0| 30 30 30 20 79 65 61 72 | 73 20 61 67 6f 0d 0a 5c |000 year|s ago..\|
|000007c0| 65 6e 64 7b 66 6c 75 73 | 68 72 69 67 68 74 7d 0d |end{flus|hright}.|
|000007d0| 0a 54 68 69 73 20 64 6f | 63 75 6d 65 6e 74 20 64 |.This do|cument d|
|000007e0| 65 73 63 72 69 62 65 73 | 20 76 61 72 69 6f 75 73 |escribes| various|
|000007f0| 20 65 78 74 65 6e 73 69 | 6f 6e 73 20 74 6f 20 5c | extensi|ons to \|
|00000800| 70 63 73 5c 20 62 79 20 | 74 68 65 20 47 65 6e 65 |pcs\ by |the Gene|
|00000810| 76 61 0d 0a 53 63 68 65 | 6d 65 20 54 65 61 6d 2e |va..Sche|me Team.|
|00000820| 20 54 68 65 73 65 20 69 | 6e 63 6c 75 64 65 20 42 | These i|nclude B|
|00000830| 47 49 2c 20 61 20 67 72 | 61 70 68 69 63 73 20 70 |GI, a gr|aphics p|
|00000840| 61 63 6b 61 67 65 20 62 | 61 73 65 64 20 6f 6e 20 |ackage b|ased on |
|00000850| 74 68 65 0d 0a 69 6e 74 | 65 72 66 61 63 65 20 64 |the..int|erface d|
|00000860| 65 76 65 6c 6f 70 65 64 | 20 62 79 20 42 6f 72 6c |eveloped| by Borl|
|00000870| 61 6e 64 5c 69 6e 64 65 | 78 7b 42 6f 72 6c 61 6e |and\inde|x{Borlan|
|00000880| 64 7d 2c 20 61 6e 64 20 | 4d 6f 75 73 65 20 73 75 |d}, and |Mouse su|
|00000890| 70 70 6f 72 74 2e 0d 0a | 42 47 49 20 69 73 20 64 |pport...|BGI is d|
|000008a0| 69 73 74 72 69 62 75 74 | 65 64 20 62 79 20 42 6f |istribut|ed by Bo|
|000008b0| 72 6c 61 6e 64 20 61 73 | 20 43 20 61 6e 64 20 50 |rland as| C and P|
|000008c0| 61 73 63 61 6c 5c 69 6e | 64 65 78 7b 50 61 73 63 |ascal\in|dex{Pasc|
|000008d0| 61 6c 7d 20 6c 69 62 72 | 61 72 69 65 73 2e 0d 0a |al} libr|aries...|
|000008e0| 4f 75 72 20 61 64 61 70 | 74 61 74 69 6f 6e 20 74 |Our adap|tation t|
|000008f0| 6f 20 53 63 68 65 6d 65 | 20 70 72 65 73 65 72 76 |o Scheme| preserv|
|00000900| 65 73 20 74 68 65 20 73 | 70 69 72 69 74 20 6f 66 |es the s|pirit of|
|00000910| 20 42 6f 72 6c 61 6e 64 | 27 73 20 6f 72 69 67 69 | Borland|'s origi|
|00000920| 6e 61 6c 20 70 72 6f 64 | 75 63 74 2e 0d 0a 0d 0a |nal prod|uct.....|
|00000930| 54 68 65 20 61 75 74 68 | 6f 72 73 27 20 77 6f 72 |The auth|ors' wor|
|00000940| 6b 20 69 73 20 73 75 70 | 70 6f 72 74 65 64 20 62 |k is sup|ported b|
|00000950| 79 20 74 68 65 20 55 6e | 69 76 65 72 73 69 74 79 |y the Un|iversity|
|00000960| 20 6f 66 20 47 65 6e 65 | 76 61 2e 0d 0a 54 68 65 | of Gene|va...The|
|00000970| 79 20 63 61 6e 20 62 65 | 20 72 65 61 63 68 65 64 |y can be| reached|
|00000980| 20 61 74 20 74 68 65 69 | 72 20 45 2d 4d 61 69 6c | at thei|r E-Mail|
|00000990| 5c 69 6e 64 65 78 7b 45 | 2d 4d 61 69 6c 7d 20 61 |\index{E|-Mail} a|
|000009a0| 64 64 72 65 73 73 20 60 | 60 73 63 68 65 6d 65 67 |ddress `|`schemeg|
|000009b0| 65 40 63 75 69 2e 75 6e | 69 67 65 2e 63 68 27 27 |e@cui.un|ige.ch''|
|000009c0| 2e 0d 0a 54 68 69 73 20 | 64 6f 63 75 6d 65 6e 74 |...This |document|
|000009d0| 20 77 61 73 20 74 79 70 | 65 73 65 74 20 62 79 20 | was typ|eset by |
|000009e0| 5c 4c 61 54 65 58 2e 0d | 0a 5c 65 6e 64 7b 61 62 |\LaTeX..|.\end{ab|
|000009f0| 73 74 72 61 63 74 7d 0d | 0a 0d 0a 5c 74 61 62 6c |stract}.|...\tabl|
|00000a00| 65 6f 66 63 6f 6e 74 65 | 6e 74 73 0d 0a 0d 0a 5c |eofconte|nts....\|
|00000a10| 70 61 72 74 5b 4d 6f 75 | 73 65 20 53 75 70 70 6f |part[Mou|se Suppo|
|00000a20| 72 74 20 69 6e 20 5c 70 | 63 73 5d 7b 4d 6f 75 73 |rt in \p|cs]{Mous|
|00000a30| 65 20 53 75 70 70 6f 72 | 74 20 69 6e 20 5c 70 63 |e Suppor|t in \pc|
|00000a40| 73 5c 69 6e 64 65 78 7b | 4d 6f 75 73 65 7d 5c 5c |s\index{|Mouse}\\|
|00000a50| 5b 31 63 6d 5d 0d 0a 5c | 73 6c 5c 6e 6f 72 6d 61 |[1cm]..\|sl\norma|
|00000a60| 6c 73 69 7a 65 5c 6d 65 | 64 69 75 6d 73 65 72 69 |lsize\me|diumseri|
|00000a70| 65 73 5c 62 65 67 69 6e | 7b 6d 69 6e 69 70 61 67 |es\begin|{minipag|
|00000a80| 65 7d 7b 31 35 63 6d 7d | 0d 0a 4d 69 63 72 6f 73 |e}{15cm}|..Micros|
|00000a90| 6f 66 74 28 54 4d 29 5c | 69 6e 64 65 78 7b 4d 69 |oft(TM)\|index{Mi|
|00000aa0| 63 72 6f 73 6f 66 74 7d | 20 73 70 65 63 69 66 69 |crosoft}| specifi|
|00000ab0| 65 64 20 61 20 73 74 61 | 6e 64 61 72 64 20 69 6e |ed a sta|ndard in|
|00000ac0| 74 65 72 66 61 63 65 20 | 74 6f 20 64 72 69 76 65 |terface |to drive|
|00000ad0| 0d 0a 74 68 65 20 6d 6f | 75 73 65 20 66 72 6f 6d |..the mo|use from|
|00000ae0| 20 77 69 74 68 69 6e 20 | 61 70 70 6c 69 63 61 74 | within |applicat|
|00000af0| 69 6f 6e 73 2e 20 50 72 | 61 63 74 69 63 61 6c 6c |ions. Pr|acticall|
|00000b00| 79 20 61 6c 6c 20 6d 6f | 75 73 65 20 76 65 6e 64 |y all mo|use vend|
|00000b10| 6f 72 73 0d 0a 61 64 68 | 65 72 65 64 20 74 6f 20 |ors..adh|ered to |
|00000b20| 74 68 69 73 20 69 6e 74 | 65 72 66 61 63 65 2c 20 |this int|erface, |
|00000b30| 73 6f 20 69 74 20 6d 61 | 64 65 20 73 65 6e 73 65 |so it ma|de sense|
|00000b40| 20 74 6f 20 61 63 63 65 | 73 73 20 74 68 65 20 6d | to acce|ss the m|
|00000b50| 6f 75 73 65 0d 0a 74 68 | 6f 75 67 68 20 69 74 20 |ouse..th|ough it |
|00000b60| 66 72 6f 6d 20 77 69 74 | 68 69 6e 20 5c 70 63 73 |from wit|hin \pcs|
|00000b70| 2e 20 55 6e 66 6f 72 74 | 75 6e 61 74 65 6c 79 2c |. Unfort|unately,|
|00000b80| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 77 61 | the sta|ndard wa|
|00000b90| 73 20 64 65 73 69 67 6e | 65 64 20 66 6f 72 0d 0a |s design|ed for..|
|00000ba0| 69 6e 74 65 72 66 61 63 | 69 6e 67 20 74 6f 20 61 |interfac|ing to a|
|00000bb0| 73 73 65 6d 62 6c 79 20 | 6c 61 6e 67 75 61 67 65 |ssembly |language|
|00000bc0| 20 61 6e 64 20 74 68 75 | 73 20 63 6f 6e 74 61 69 | and thu|s contai|
|00000bd0| 6e 73 20 73 6f 6d 65 20 | 70 65 63 75 6c 69 61 72 |ns some |peculiar|
|00000be0| 69 74 69 65 73 2c 0d 0a | 6c 69 6b 65 20 65 76 65 |ities,..|like eve|
|00000bf0| 6e 74 20 68 61 6e 64 6c | 65 72 73 2c 20 74 68 61 |nt handl|ers, tha|
|00000c00| 74 20 68 61 76 65 20 63 | 61 72 65 66 75 6c 6c 79 |t have c|arefully|
|00000c10| 20 74 6f 20 62 65 20 64 | 65 61 6c 74 20 77 69 74 | to be d|ealt wit|
|00000c20| 68 2e 0d 0a 5c 65 6e 64 | 7b 6d 69 6e 69 70 61 67 |h...\end|{minipag|
|00000c30| 65 7d 5c 5c 5b 32 6d 6d | 5d 0d 0a 5c 62 65 67 69 |e}\\[2mm|]..\begi|
|00000c40| 6e 7b 6d 69 6e 69 70 61 | 67 65 7d 7b 31 35 63 6d |n{minipa|ge}{15cm|
|00000c50| 7d 0d 0a 54 68 65 20 73 | 6f 6c 75 74 69 6f 6e 20 |}..The s|olution |
|00000c60| 70 72 6f 70 6f 73 65 64 | 20 69 73 20 61 20 73 6c |proposed| is a sl|
|00000c70| 69 67 68 74 20 65 78 74 | 65 6e 73 69 6f 6e 20 6f |ight ext|ension o|
|00000c80| 66 20 5c 70 63 73 27 73 | 20 63 6f 72 65 2d 2d 2d |f \pcs's| core---|
|00000c90| 74 68 65 0d 0a 76 69 72 | 74 75 61 6c 20 6d 61 63 |the..vir|tual mac|
|00000ca0| 68 69 6e 65 2e 20 41 6e | 20 6f 70 2d 63 6f 64 65 |hine. An| op-code|
|00000cb0| 20 68 61 73 20 62 65 65 | 6e 20 61 64 64 65 64 20 | has bee|n added |
|00000cc0| 74 6f 20 73 75 70 70 6f | 72 74 20 74 68 65 20 7b |to suppo|rt the {|
|00000cd0| 5c 74 74 20 69 6e 74 7e | 33 33 68 7d 0d 0a 63 61 |\tt int~|33h}..ca|
|00000ce0| 6c 6c 73 2c 20 61 73 20 | 77 65 6c 6c 20 61 73 20 |lls, as |well as |
|00000cf0| 61 6e 20 61 73 73 65 6d | 62 6c 79 2d 6c 61 6e 67 |an assem|bly-lang|
|00000d00| 75 61 67 65 20 65 76 65 | 6e 74 20 68 61 6e 64 6c |uage eve|nt handl|
|00000d10| 65 72 20 74 68 61 74 20 | 64 69 73 70 61 74 63 68 |er that |dispatch|
|00000d20| 65 73 0d 0a 72 65 71 75 | 65 73 74 73 20 74 6f 20 |es..requ|ests to |
|00000d30| 61 20 53 63 68 65 6d 65 | 20 63 6c 6f 73 75 72 65 |a Scheme| closure|
|00000d40| 2e 20 54 68 65 20 73 6f | 6c 75 74 69 6f 6e 20 69 |. The so|lution i|
|00000d50| 73 20 6e 6f 74 20 70 65 | 72 66 65 63 74 20 69 6e |s not pe|rfect in|
|00000d60| 20 74 68 65 20 73 65 6e | 73 65 0d 0a 65 76 65 6e | the sen|se..even|
|00000d70| 74 20 68 61 6e 64 6c 69 | 6e 67 20 63 61 6e 6e 6f |t handli|ng canno|
|00000d80| 74 20 62 65 20 68 6f 6e | 6f 72 65 64 20 69 6e 20 |t be hon|ored in |
|00000d90| 74 68 65 20 6d 69 64 64 | 6c 65 20 6f 66 20 61 20 |the midd|le of a |
|00000da0| 62 61 73 69 63 20 69 6e | 73 74 72 75 63 74 69 6f |basic in|structio|
|00000db0| 6e 0d 0a 28 66 6f 72 20 | 69 6e 73 74 61 6e 63 65 |n..(for |instance|
|00000dc0| 2c 20 64 75 72 69 6e 67 | 20 61 20 63 61 6c 6c 20 |, during| a call |
|00000dd0| 74 6f 20 7b 5c 74 74 20 | 72 65 61 64 6c 69 6e 65 |to {\tt |readline|
|00000de0| 7d 29 2e 20 54 68 65 20 | 73 6c 6f 77 64 6f 77 6e |}). The |slowdown|
|00000df0| 20 64 75 65 20 74 6f 0d | 0a 53 63 68 65 6d 65 20 | due to.|.Scheme |
|00000e00| 68 61 6e 64 6c 69 6e 67 | 20 6f 66 20 65 76 65 6e |handling| of even|
|00000e10| 20 74 68 65 20 6d 6f 73 | 74 20 73 69 6d 70 6c 65 | the mos|t simple|
|00000e20| 20 65 76 65 6e 74 73 20 | 28 6c 69 6b 65 20 72 65 | events |(like re|
|00000e30| 63 6f 72 64 69 6e 67 20 | 61 20 6d 6f 76 65 29 2c |cording |a move),|
|00000e40| 0d 0a 61 6e 64 20 74 68 | 65 20 63 6f 6e 74 65 78 |..and th|e contex|
|00000e50| 74 20 73 77 69 74 63 68 | 69 6e 67 20 72 65 71 75 |t switch|ing requ|
|00000e60| 69 72 65 64 2c 20 6d 61 | 79 20 72 65 6e 64 65 72 |ired, ma|y render|
|00000e70| 20 65 76 65 6e 74 20 68 | 61 6e 64 6c 69 6e 67 0d | event h|andling.|
|00000e80| 0a 75 6e 70 72 61 63 74 | 69 63 61 6c 20 6f 6e 20 |.unpract|ical on |
|00000e90| 73 6c 6f 77 20 70 72 6f | 63 65 73 73 6f 72 73 3b |slow pro|cessors;|
|00000ea0| 20 74 68 65 20 73 79 73 | 74 65 6d 20 68 61 73 20 | the sys|tem has |
|00000eb0| 6e 65 76 65 72 74 68 65 | 6c 65 73 73 20 73 75 63 |neverthe|less suc|
|00000ec0| 63 65 73 73 66 75 6c 6c | 79 0d 0a 62 65 65 6e 20 |cessfull|y..been |
|00000ed0| 75 73 65 64 20 6f 6e 20 | 61 20 66 61 73 74 20 38 |used on |a fast 8|
|00000ee0| 30 34 38 36 20 50 43 2e | 0d 0a 5c 65 6e 64 7b 6d |0486 PC.|..\end{m|
|00000ef0| 69 6e 69 70 61 67 65 7d | 5c 5c 5b 32 6d 6d 5d 0d |inipage}|\\[2mm].|
|00000f00| 0a 5c 62 65 67 69 6e 7b | 6d 69 6e 69 70 61 67 65 |.\begin{|minipage|
|00000f10| 7d 7b 31 35 63 6d 7d 0d | 0a 54 68 69 73 20 70 61 |}{15cm}.|.This pa|
|00000f20| 72 74 20 68 61 73 20 62 | 65 65 6e 20 77 72 69 74 |rt has b|een writ|
|00000f30| 74 65 6e 20 62 79 20 4c | 61 72 72 79 20 42 61 72 |ten by L|arry Bar|
|00000f40| 74 68 6f 6c 64 69 2e 0d | 0a 5c 65 6e 64 7b 6d 69 |tholdi..|.\end{mi|
|00000f50| 6e 69 70 61 67 65 7d 0d | 0a 7d 0d 0a 0d 0a 5c 63 |nipage}.|.}....\c|
|00000f60| 68 61 70 74 65 72 7b 54 | 68 65 20 69 6e 74 65 72 |hapter{T|he inter|
|00000f70| 66 61 63 69 6e 67 7d 0d | 0a 54 68 65 20 6d 6f 73 |facing}.|.The mos|
|00000f80| 74 20 69 6d 70 6f 72 74 | 61 6e 74 20 64 69 66 66 |t import|ant diff|
|00000f90| 65 72 65 6e 63 65 73 20 | 62 65 74 77 65 65 6e 20 |erences |between |
|00000fa0| 74 68 65 20 61 73 73 65 | 6d 62 6c 79 20 6c 65 76 |the asse|mbly lev|
|00000fb0| 65 6c 20 69 6e 74 65 72 | 66 61 63 65 0d 0a 61 6e |el inter|face..an|
|00000fc0| 64 20 74 68 65 20 53 63 | 68 65 6d 65 20 70 72 6f |d the Sc|heme pro|
|00000fd0| 63 65 64 75 72 65 73 20 | 61 72 65 3a 0d 0a 5c 62 |cedures |are:..\b|
|00000fe0| 65 67 69 6e 7b 69 74 65 | 6d 69 7a 65 7d 0d 0a 5c |egin{ite|mize}..\|
|00000ff0| 69 74 65 6d 09 5c 70 63 | 73 5c 20 68 61 73 20 61 |item.\pc|s\ has a|
|00001000| 6e 20 4f 62 6a 65 63 74 | 2d 4f 72 69 65 6e 74 65 |n Object|-Oriente|
|00001010| 64 20 69 6e 74 65 72 66 | 61 63 65 0d 0a 5c 69 74 |d interf|ace..\it|
|00001020| 65 6d 09 5c 70 63 73 5c | 20 75 73 65 73 20 73 79 |em.\pcs\| uses sy|
|00001030| 6d 62 6f 6c 69 63 20 63 | 6f 6e 73 74 61 6e 74 73 |mbolic c|onstants|
|00001040| 20 61 62 75 6e 64 61 6e | 74 6c 79 20 28 61 6e 64 | abundan|tly (and|
|00001050| 20 6c 69 73 74 20 6f 66 | 20 63 6f 6e 73 74 61 6e | list of| constan|
|00001060| 74 73 0d 0a 09 69 6e 73 | 74 65 61 64 20 6f 66 20 |ts...ins|tead of |
|00001070| 62 69 74 20 6d 61 73 6b | 73 29 0d 0a 5c 65 6e 64 |bit mask|s)..\end|
|00001080| 7b 69 74 65 6d 69 7a 65 | 7d 0d 0a 0d 0a 4f 6e 20 |{itemize|}....On |
|00001090| 74 68 65 20 6c 6f 77 65 | 73 74 20 6c 65 76 65 6c |the lowe|st level|
|000010a0| 2c 20 61 6c 6c 20 72 65 | 71 75 65 73 74 73 20 61 |, all re|quests a|
|000010b0| 72 65 20 65 78 65 63 75 | 74 65 64 20 74 68 72 6f |re execu|ted thro|
|000010c0| 75 67 68 0d 0a 5c 66 75 | 6e 63 7b 5c 25 4d 4f 55 |ugh..\fu|nc{\%MOU|
|000010d0| 53 45 7d 7b 61 78 20 62 | 78 20 63 78 20 64 78 20 |SE}{ax b|x cx dx |
|000010e0| 73 69 20 64 69 20 5c 6f | 70 74 7b 65 73 3a 64 78 |si di \o|pt{es:dx|
|000010f0| 7d 7d 0d 0a 77 68 69 63 | 68 20 72 65 74 75 72 6e |}}..whic|h return|
|00001100| 73 20 61 20 6c 69 73 74 | 3a 20 5c 4c 69 73 74 7b |s a list|: \List{|
|00001110| 61 78 20 62 78 20 63 78 | 20 64 78 7d 20 6f 66 20 |ax bx cx| dx} of |
|00001120| 74 68 65 20 43 50 55 20 | 72 65 67 69 73 74 65 72 |the CPU |register|
|00001130| 73 20 61 66 74 65 72 0d | 0a 74 68 65 20 63 61 6c |s after.|.the cal|
|00001140| 6c 20 68 61 73 20 62 65 | 65 6e 20 65 66 66 65 63 |l has be|en effec|
|00001150| 74 65 64 2e 20 46 6f 72 | 74 75 6e 61 74 65 6c 79 |ted. For|tunately|
|00001160| 20 79 6f 75 20 77 69 6c | 6c 20 6e 65 76 65 72 20 | you wil|l never |
|00001170| 68 61 76 65 20 74 6f 20 | 63 61 6c 6c 20 74 68 69 |have to |call thi|
|00001180| 73 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 64 69 72 65 |s..funct|ion dire|
|00001190| 63 74 6c 79 3b 20 62 75 | 74 20 74 68 69 73 20 69 |ctly; bu|t this i|
|000011a0| 73 20 68 6f 77 20 5c 70 | 63 73 27 73 20 69 6e 74 |s how \p|cs's int|
|000011b0| 65 72 66 61 63 65 20 77 | 6f 72 6b 73 2e 0d 0a 0d |erface w|orks....|
|000011c0| 0a 54 68 65 20 68 69 67 | 68 2d 6c 65 76 65 6c 20 |.The hig|h-level |
|000011d0| 69 6e 74 65 72 66 61 63 | 65 20 28 69 6e 20 7b 5c |interfac|e (in {\|
|000011e0| 74 74 20 4d 4f 55 53 45 | 2e 46 53 4c 7d 29 20 77 |tt MOUSE|.FSL}) w|
|000011f0| 6f 72 6b 73 20 77 69 74 | 68 20 61 20 73 69 6e 67 |orks wit|h a sing|
|00001200| 6c 65 20 60 60 6d 6f 75 | 73 65 27 27 0d 0a 6f 62 |le ``mou|se''..ob|
|00001210| 6a 65 63 74 2c 0d 0a 5c | 65 73 66 75 6e 63 7b 4d |ject,..\|esfunc{M|
|00001220| 4f 55 53 45 7d 7b 6d 65 | 73 73 61 67 65 20 5c 6f |OUSE}{me|ssage \o|
|00001230| 70 74 7b 70 61 72 61 6d | 65 74 65 72 73 7d 7d 0d |pt{param|eters}}.|
|00001240| 0a 74 68 61 74 20 74 72 | 61 6e 73 6c 61 74 65 73 |.that tr|anslates|
|00001250| 20 74 68 65 20 6d 65 73 | 73 61 67 65 20 74 6f 20 | the mes|sage to |
|00001260| 7b 5c 74 74 20 28 5c 25 | 6d 6f 75 73 65 29 7d 20 |{\tt (\%|mouse)} |
|00001270| 63 61 6c 6c 73 2e 20 54 | 68 65 20 6d 65 73 73 61 |calls. T|he messa|
|00001280| 67 65 73 20 7b 5c 74 74 | 20 6d 6f 75 73 65 7d 0d |ges {\tt| mouse}.|
|00001290| 0a 72 65 63 6f 67 6e 69 | 73 65 73 20 61 72 65 3a |.recogni|ses are:|
|000012a0| 0d 0a 5c 76 73 70 61 63 | 65 7b 35 6d 6d 7d 0d 0a |..\vspac|e{5mm}..|
|000012b0| 5c 74 61 62 6c 65 68 65 | 61 64 7b 5c 6d 75 6c 74 |\tablehe|ad{\mult|
|000012c0| 69 63 6f 6c 75 6d 6e 7b | 31 7d 7b 63 7d 7b 7b 5c |icolumn{|1}{c}{{\|
|000012d0| 62 66 20 4d 65 73 73 61 | 67 65 20 41 72 67 73 7d |bf Messa|ge Args}|
|000012e0| 20 24 5c 52 69 67 68 74 | 61 72 72 6f 77 24 20 7b | $\Right|arrow$ {|
|000012f0| 5c 62 66 20 52 65 73 75 | 6c 74 7d 7d 0d 0a 09 26 |\bf Resu|lt}}...&|
|00001300| 20 7b 5c 62 66 20 43 6f | 6d 6d 65 6e 74 73 7d 20 | {\bf Co|mments} |
|00001310| 5c 5c 20 5c 68 6c 69 6e | 65 20 5c 5c 5b 32 6d 6d |\\ \hlin|e \\[2mm|
|00001320| 5d 7d 0d 0a 5c 74 61 62 | 6c 65 74 61 69 6c 7b 7d |]}..\tab|letail{}|
|00001330| 0d 0a 0d 0a 5c 6e 65 77 | 6c 65 6e 67 74 68 7b 5c |....\new|length{\|
|00001340| 6f 6c 64 69 6e 64 65 6e | 74 7d 0d 0a 5c 73 65 74 |oldinden|t}..\set|
|00001350| 6c 65 6e 67 74 68 7b 5c | 6f 6c 64 69 6e 64 65 6e |length{\|oldinden|
|00001360| 74 7d 7b 5c 70 61 72 69 | 6e 64 65 6e 74 7d 0d 0a |t}{\pari|ndent}..|
|00001370| 5c 73 65 74 6c 65 6e 67 | 74 68 7b 5c 70 61 72 69 |\setleng|th{\pari|
|00001380| 6e 64 65 6e 74 7d 7b 30 | 63 6d 7d 0d 0a 5c 62 65 |ndent}{0|cm}..\be|
|00001390| 67 69 6e 7b 73 75 70 65 | 72 74 61 62 75 6c 61 72 |gin{supe|rtabular|
|000013a0| 7d 7b 70 7b 35 63 6d 7d | 7c 70 7b 31 30 2e 34 63 |}{p{5cm}||p{10.4c|
|000013b0| 6d 7d 7d 0d 0a 5c 6d 73 | 67 7b 52 45 53 45 54 7d |m}}..\ms|g{RESET}|
|000013c0| 7b 7d 7b 5c 23 2d 62 75 | 74 74 6f 6e 73 7d 09 26 |{}{\#-bu|ttons}.&|
|000013d0| 20 54 68 69 73 20 6d 65 | 73 73 61 67 65 20 73 68 | This me|ssage sh|
|000013e0| 6f 75 6c 64 20 62 65 20 | 74 68 65 20 66 69 72 73 |ould be |the firs|
|000013f0| 74 0d 0a 09 73 65 6e 74 | 20 77 68 65 6e 20 64 65 |t...sent| when de|
|00001400| 61 6c 69 6e 67 20 77 69 | 74 68 20 74 68 65 20 6d |aling wi|th the m|
|00001410| 6f 75 73 65 2e 20 49 74 | 20 72 65 74 75 72 6e 73 |ouse. It| returns|
|00001420| 20 24 2d 31 24 20 69 66 | 20 6e 6f 20 6d 6f 75 73 | $-1$ if| no mous|
|00001430| 65 20 69 73 0d 0a 09 61 | 76 61 6c 69 61 62 6c 65 |e is...a|valiable|
|00001440| 2e 20 5c 5c 0d 0a 5c 4d | 53 47 7b 53 48 4f 57 7d |. \\..\M|SG{SHOW}|
|00001450| 7b 7d 09 26 09 49 6e 63 | 72 65 6d 65 6e 74 73 20 |{}.&.Inc|rements |
|00001460| 74 68 65 20 6d 6f 75 73 | 65 27 73 20 76 69 73 69 |the mous|e's visi|
|00001470| 62 69 6c 69 74 79 20 63 | 6f 75 6e 74 2e 20 54 68 |bility c|ount. Th|
|00001480| 65 20 63 6f 75 6e 74 0d | 0a 09 69 6e 69 74 69 61 |e count.|..initia|
|00001490| 6c 6c 79 20 69 73 20 24 | 2d 31 24 2c 20 63 61 6e |lly is $|-1$, can|
|000014a0| 20 62 65 20 69 6e 63 72 | 65 6d 65 6e 74 65 64 20 | be incr|emented |
|000014b0| 6f 72 20 64 65 63 72 65 | 6d 65 6e 74 65 64 2c 20 |or decre|mented, |
|000014c0| 62 75 74 20 63 61 6e 20 | 6e 65 76 65 72 0d 0a 09 |but can |never...|
|000014d0| 62 65 63 6f 6d 65 20 70 | 6f 73 69 74 69 76 65 20 |become p|ositive |
|000014e0| 28 63 61 6c 6c 73 20 74 | 6f 20 5c 53 59 7b 53 48 |(calls t|o \SY{SH|
|000014f0| 4f 57 7d 20 61 72 65 20 | 77 69 74 68 6f 75 74 20 |OW} are |without |
|00001500| 65 66 66 65 63 74 20 69 | 66 20 74 68 65 20 63 6f |effect i|f the co|
|00001510| 75 6e 74 0d 0a 09 69 73 | 20 24 7b 7d 20 5c 67 65 |unt...is| ${} \ge|
|00001520| 20 30 24 29 2e 20 54 68 | 65 20 70 6f 69 6e 74 65 | 0$). Th|e pointe|
|00001530| 72 20 69 73 20 76 69 73 | 69 62 6c 65 20 6f 6e 6c |r is vis|ible onl|
|00001540| 79 20 77 68 65 6e 20 74 | 68 65 20 63 6f 75 6e 74 |y when t|he count|
|00001550| 20 69 73 20 24 3d 20 30 | 24 2e 20 5c 5c 0d 0a 5c | is $= 0|$. \\..\|
|00001560| 4d 53 47 7b 48 49 44 45 | 7d 7b 7d 09 26 09 44 65 |MSG{HIDE|}{}.&.De|
|00001570| 63 72 65 6d 65 6e 74 73 | 20 74 68 65 20 6d 6f 75 |crements| the mou|
|00001580| 73 65 27 73 20 76 69 73 | 69 62 6c 69 74 79 20 63 |se's vis|iblity c|
|00001590| 6f 75 6e 74 2e 20 5c 5c | 0d 0a 5c 6d 73 67 7b 49 |ount. \\|..\msg{I|
|000015a0| 4e 51 7d 7b 7d 7b 5c 4c | 69 73 74 7b 62 75 74 74 |NQ}{}{\L|ist{butt|
|000015b0| 6f 6e 73 2d 64 6f 77 6e | 20 78 20 79 7d 7d 09 26 |ons-down| x y}}.&|
|000015c0| 20 7b 5c 69 74 20 62 75 | 74 74 6f 6e 73 2d 64 6f | {\it bu|ttons-do|
|000015d0| 77 6e 7d 0d 0a 09 69 73 | 20 61 20 6c 69 73 74 20 |wn}...is| a list |
|000015e0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 61 6e 79 20 6f |containi|ng any o|
|000015f0| 66 20 5c 53 59 7b 4c 45 | 46 54 7d 2c 20 5c 53 59 |f \SY{LE|FT}, \SY|
|00001600| 7b 52 49 47 48 54 7d 20 | 61 6e 64 20 7b 5c 69 74 |{RIGHT} |and {\it|
|00001610| 74 20 43 45 4e 54 45 52 | 7d 2e 0d 0a 09 54 68 65 |t CENTER|}....The|
|00001620| 20 78 2d 2d 20 61 6e 64 | 20 79 2d 70 6f 73 69 74 | x-- and| y-posit|
|00001630| 69 6f 6e 73 20 61 72 65 | 20 74 68 6f 75 67 68 74 |ions are| thought|
|00001640| 20 69 6e 20 24 36 34 30 | 5c 74 69 6d 65 73 32 30 | in $640|\times20|
|00001650| 30 24 20 75 6e 69 74 73 | 2c 20 61 6c 74 68 6f 75 |0$ units|, althou|
|00001660| 67 68 0d 0a 09 74 68 65 | 79 20 63 61 6e 20 62 65 |gh...the|y can be|
|00001670| 20 72 65 64 65 66 69 6e | 65 64 20 74 6f 20 61 6e | redefin|ed to an|
|00001680| 79 20 73 63 61 6c 69 6e | 67 2e 20 54 68 65 79 20 |y scalin|g. They |
|00001690| 61 72 65 20 61 6c 77 61 | 79 73 20 69 6e 20 6c 69 |are alwa|ys in li|
|000016a0| 6e 65 61 72 0d 0a 09 63 | 6f 72 72 65 73 70 6f 6e |near...c|orrespon|
|000016b0| 64 65 6e 63 65 20 77 69 | 74 68 20 74 68 65 20 60 |dence wi|th the `|
|000016c0| 60 4d 69 63 6b 65 79 73 | 27 27 2e 20 5c 5c 0d 0a |`Mickeys|''. \\..|
|000016d0| 5c 4d 53 47 7b 4d 4f 56 | 45 7d 7b 78 20 79 7d 20 |\MSG{MOV|E}{x y} |
|000016e0| 26 09 4d 6f 76 65 73 20 | 74 68 65 20 70 6f 69 6e |&.Moves |the poin|
|000016f0| 74 65 72 20 74 6f 20 61 | 6e 20 61 62 73 6f 6c 75 |ter to a|n absolu|
|00001700| 74 65 20 6c 6f 63 61 74 | 69 6f 6e 2e 20 41 73 20 |te locat|ion. As |
|00001710| 61 6c 77 61 79 73 2c 0d | 0a 09 24 28 30 2c 30 29 |always,.|..$(0,0)|
|00001720| 24 20 69 73 20 74 68 65 | 20 75 70 70 65 72 20 6c |$ is the| upper l|
|00001730| 65 66 74 20 63 6f 72 6e | 65 72 2e 20 54 68 65 20 |eft corn|er. The |
|00001740| 76 61 6c 75 65 73 20 61 | 72 65 20 63 6c 69 70 70 |values a|re clipp|
|00001750| 65 64 20 74 6f 20 74 68 | 65 0d 0a 09 6c 69 6d 69 |ed to th|e...limi|
|00001760| 74 69 6e 67 20 72 65 63 | 74 61 6e 67 6c 65 2e 20 |ting rec|tangle. |
|00001770| 5c 5c 0d 0a 5c 6d 73 67 | 7b 50 52 45 53 53 7d 7b |\\..\msg|{PRESS}{|
|00001780| 62 75 74 74 6f 6e 7d 7b | 5c 4c 69 73 74 7b 62 75 |button}{|\List{bu|
|00001790| 74 74 6f 6e 73 2d 64 6f | 77 6e 20 63 6f 75 6e 74 |ttons-do|wn count|
|000017a0| 20 78 20 79 7d 7d 20 26 | 0d 0a 09 54 68 65 72 65 | x y}} &|...There|
|000017b0| 20 69 73 20 61 6e 20 61 | 64 64 69 74 69 6f 6e 61 | is an a|dditiona|
|000017c0| 6c 20 66 69 65 6c 64 20 | 63 6f 6d 70 61 72 65 64 |l field |compared|
|000017d0| 20 74 6f 20 5c 53 59 7b | 49 4e 51 7d 3a 20 74 68 | to \SY{|INQ}: th|
|000017e0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 0d 0a 09 74 69 |e number| of...ti|
|000017f0| 6d 65 73 20 74 68 65 20 | 62 75 74 74 6f 6e 20 68 |mes the |button h|
|00001800| 61 73 20 62 65 65 6e 20 | 70 72 65 73 73 65 64 2e |as been |pressed.|
|00001810| 20 41 6c 6c 20 6f 74 68 | 65 72 20 76 61 6c 75 65 | All oth|er value|
|00001820| 73 20 72 65 66 65 72 20 | 74 6f 0d 0a 09 74 68 65 |s refer |to...the|
|00001830| 20 6d 6f 75 73 65 20 73 | 74 61 74 65 20 77 68 65 | mouse s|tate whe|
|00001840| 6e 20 74 68 65 20 6c 61 | 73 74 20 60 60 70 72 65 |n the la|st ``pre|
|00001850| 73 73 27 27 20 6f 63 63 | 75 72 65 64 2e 20 54 68 |ss'' occ|ured. Th|
|00001860| 65 20 63 6f 75 6e 74 20 | 69 73 20 72 65 73 65 74 |e count |is reset|
|00001870| 0d 0a 09 74 6f 20 30 20 | 61 66 74 65 72 20 74 68 |...to 0 |after th|
|00001880| 69 73 20 63 61 6c 6c 2e | 0d 0a 0d 0a 09 7b 5c 69 |is call.|.....{\i|
|00001890| 74 20 62 75 74 74 6f 6e | 7d 20 69 73 20 61 20 73 |t button|} is a s|
|000018a0| 79 6d 62 6f 6c 2e 5c 5c | 0d 0a 5c 6d 73 67 7b 52 |ymbol.\\|..\msg{R|
|000018b0| 45 4c 45 41 53 45 7d 7b | 62 75 74 74 6f 6e 7d 7b |ELEASE}{|button}{|
|000018c0| 5c 4c 69 73 74 7b 62 75 | 74 74 6f 6e 73 2d 64 6f |\List{bu|ttons-do|
|000018d0| 77 6e 20 63 6f 75 6e 74 | 20 78 20 79 7d 7d 20 26 |wn count| x y}} &|
|000018e0| 0d 0a 09 4a 75 73 74 20 | 6c 69 6b 65 20 5c 53 59 |...Just |like \SY|
|000018f0| 7b 50 52 45 53 53 7d 2c | 20 65 78 63 65 70 74 20 |{PRESS},| except |
|00001900| 69 74 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 72 |it retur|ns the r|
|00001910| 65 6c 65 61 73 65 20 63 | 6f 75 6e 74 2e 20 5c 5c |elease c|ount. \\|
|00001920| 0d 0a 5c 4d 53 47 7b 4c | 49 4d 49 54 53 7d 7b 5c |..\MSG{L|IMITS}{\|
|00001930| 53 59 7b 48 4f 52 49 5a | 4f 4e 54 41 4c 7d 20 24 |SY{HORIZ|ONTAL} $|
|00001940| 78 5f 30 24 20 24 78 5f | 31 24 7d 09 26 20 53 65 |x_0$ $x_|1$}.& Se|
|00001950| 74 73 20 74 68 65 20 6d | 6f 75 73 65 27 73 20 68 |ts the m|ouse's h|
|00001960| 6f 72 69 7a 6f 6e 74 61 | 6c 0d 0a 09 76 69 65 77 |orizonta|l...view|
|00001970| 70 6f 72 74 2e 20 49 74 | 20 77 69 6c 6c 20 6e 6f |port. It| will no|
|00001980| 74 20 62 65 20 61 62 6c | 65 20 74 6f 20 6d 6f 76 |t be abl|e to mov|
|00001990| 65 20 6f 75 74 20 6f 66 | 20 74 68 61 74 20 61 72 |e out of| that ar|
|000019a0| 65 61 2e 20 49 66 20 69 | 74 20 69 73 0d 0a 09 6f |ea. If i|t is...o|
|000019b0| 75 74 73 69 64 65 20 61 | 74 20 74 68 65 20 6d 6f |utside a|t the mo|
|000019c0| 6d 65 6e 74 20 6f 66 20 | 74 68 65 20 63 61 6c 6c |ment of |the call|
|000019d0| 2c 20 69 74 20 77 69 6c | 6c 20 62 65 20 70 72 6f |, it wil|l be pro|
|000019e0| 6a 65 63 74 65 64 20 74 | 6f 20 74 68 65 20 62 6f |jected t|o the bo|
|000019f0| 72 64 65 72 2e 20 5c 5c | 0d 0a 5c 4d 53 47 7b 4c |rder. \\|..\MSG{L|
|00001a00| 49 4d 49 54 53 7d 7b 5c | 53 59 7b 56 45 52 54 49 |IMITS}{\|SY{VERTI|
|00001a10| 43 41 4c 7d 20 24 79 5f | 30 24 20 24 79 5f 31 24 |CAL} $y_|0$ $y_1$|
|00001a20| 7d 20 26 20 53 65 74 73 | 20 74 68 65 20 6d 6f 75 |} & Sets| the mou|
|00001a30| 73 65 27 73 20 76 65 72 | 74 69 63 61 6c 20 76 69 |se's ver|tical vi|
|00001a40| 65 77 70 6f 72 74 2e 20 | 5c 5c 0d 0a 5c 4d 53 47 |ewport. |\\..\MSG|
|00001a50| 7b 4c 49 4d 49 54 53 7d | 7b 5c 53 59 7b 42 4f 54 |{LIMITS}|{\SY{BOT|
|00001a60| 48 7d 20 24 78 5f 30 24 | 20 24 78 5f 31 24 20 24 |H} $x_0$| $x_1$ $|
|00001a70| 79 5f 30 24 20 24 79 5f | 31 24 7d 20 26 20 53 65 |y_0$ $y_|1$} & Se|
|00001a80| 74 73 20 74 68 65 20 6d | 6f 75 73 65 27 73 20 76 |ts the m|ouse's v|
|00001a90| 69 65 77 70 6f 72 74 2e | 20 5c 5c 0d 0a 5c 4d 53 |iewport.| \\..\MS|
|00001aa0| 47 7b 53 48 41 50 45 7d | 7b 73 68 61 70 65 7d 20 |G{SHAPE}|{shape} |
|00001ab0| 26 20 53 65 74 73 20 74 | 68 65 20 67 72 61 70 68 |& Sets t|he graph|
|00001ac0| 69 63 73 20 70 6f 69 6e | 74 65 72 2e 20 7b 5c 69 |ics poin|ter. {\i|
|00001ad0| 74 20 73 68 61 70 65 7d | 20 69 73 20 61 20 6c 69 |t shape}| is a li|
|00001ae0| 73 74 3a 0d 0a 09 5c 4c | 69 73 74 7b 78 2d 68 6f |st:...\L|ist{x-ho|
|00001af0| 74 2d 73 70 6f 74 20 79 | 2d 68 6f 74 2d 73 70 6f |t-spot y|-hot-spo|
|00001b00| 74 20 61 6e 64 2d 6d 61 | 73 6b 20 78 6f 72 2d 6d |t and-ma|sk xor-m|
|00001b10| 61 73 6b 7d 2c 20 77 68 | 65 72 65 20 74 68 65 20 |ask}, wh|ere the |
|00001b20| 6d 61 73 6b 73 0d 0a 09 | 61 72 65 20 6c 69 73 74 |masks...|are list|
|00001b30| 73 20 6f 66 20 31 36 20 | 69 6e 74 65 67 65 72 73 |s of 16 |integers|
|00001b40| 2e 20 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |. This f|unction |
|00001b50| 64 6f 65 73 20 6e 6f 74 | 20 61 66 66 65 63 74 20 |does not| affect |
|00001b60| 74 68 65 20 74 65 78 74 | 2d 6d 6f 64 65 0d 0a 09 |the text|-mode...|
|00001b70| 70 6f 69 6e 74 65 72 2e | 20 5c 5c 0d 0a 5c 6d 73 |pointer.| \\..\ms|
|00001b80| 67 7b 43 55 52 53 4f 52 | 7d 7b 6e 61 6d 65 7d 7b |g{CURSOR|}{name}{|
|00001b90| 63 75 72 73 6f 72 7d 20 | 26 20 52 65 74 75 72 6e |cursor} |& Return|
|00001ba0| 73 20 61 20 70 72 65 64 | 65 66 69 6e 65 64 20 70 |s a pred|efined p|
|00001bb0| 6f 69 6e 74 65 72 20 66 | 6f 72 20 5c 53 79 7b 53 |ointer f|or \Sy{S|
|00001bc0| 48 41 50 45 7d 2e 0d 0a | 09 54 77 6f 20 73 6f 75 |HAPE}...|.Two sou|
|00001bd0| 72 63 65 73 20 77 65 72 | 65 20 75 73 65 64 20 74 |rces wer|e used t|
|00001be0| 6f 20 67 72 61 62 20 62 | 69 74 6d 61 70 70 65 64 |o grab b|itmapped|
|00001bf0| 20 70 6f 69 6e 74 65 72 | 73 3a 20 74 68 65 20 58 | pointer|s: the X|
|00001c00| 20 57 69 6e 64 6f 77 73 | 0d 0a 09 73 68 61 72 65 | Windows|...share|
|00001c10| 64 20 6c 69 62 72 61 72 | 79 20 28 69 6e 20 7b 5c |d librar|y (in {\|
|00001c20| 74 74 20 6f 70 65 6e 77 | 69 6e 2f 73 68 61 72 65 |tt openw|in/share|
|00001c30| 2f 6c 69 62 2f 69 6e 63 | 6c 75 64 65 2f 62 69 74 |/lib/inc|lude/bit|
|00001c40| 6d 61 70 73 7d 29 2c 20 | 61 6e 64 0d 0a 09 61 6e |maps}), |and...an|
|00001c50| 20 7b 5c 73 63 20 4d 73 | 44 6f 73 7d 20 70 61 63 | {\sc Ms|Dos} pac|
|00001c60| 6b 61 67 65 20 63 61 6c | 6c 65 64 20 60 60 50 72 |kage cal|led ``Pr|
|00001c70| 65 63 69 73 65 20 50 6f | 69 6e 74 27 27 2e 20 42 |ecise Po|int''. B|
|00001c80| 6f 74 68 20 73 6f 75 72 | 63 65 73 20 77 65 72 65 |oth sour|ces were|
|00001c90| 0d 0a 09 75 73 65 64 20 | 77 69 74 68 6f 75 74 20 |...used |without |
|00001ca0| 70 65 72 6d 69 73 73 69 | 6f 6e 2e 0d 0a 0d 0a 09 |permissi|on......|
|00001cb0| 7b 5c 69 74 20 6e 61 6d | 65 7d 20 69 73 20 61 20 |{\it nam|e} is a |
|00001cc0| 73 79 6d 62 6f 6c 2c 20 | 61 6e 64 20 63 61 6e 20 |symbol, |and can |
|00001cd0| 68 61 76 65 20 76 61 6c | 75 65 73 0d 0a 5c 53 59 |have val|ues..\SY|
|00001ce0| 7b 43 45 4e 54 45 52 7d | 2c 20 5c 53 59 7b 4b 45 |{CENTER}|, \SY{KE|
|00001cf0| 59 42 4f 41 52 44 7d 2c | 20 5c 53 59 7b 4c 45 46 |YBOARD},| \SY{LEF|
|00001d00| 54 7d 2c 20 5c 53 59 7b | 52 49 47 48 54 7d 2c 20 |T}, \SY{|RIGHT}, |
|00001d10| 5c 53 59 7b 53 54 41 52 | 36 7d 2c 20 5c 53 59 7b |\SY{STAR|6}, \SY{|
|00001d20| 54 41 52 47 45 54 7d 0d | 0a 28 58 20 57 69 6e 64 |TARGET}.|.(X Wind|
|00001d30| 6f 77 73 29 20 61 6e 64 | 0d 0a 5c 53 59 7b 41 52 |ows) and|..\SY{AR|
|00001d40| 52 4f 57 7d 2c 20 5c 53 | 59 7b 42 4c 4f 43 4b 7d |ROW}, \S|Y{BLOCK}|
|00001d50| 2c 20 5c 53 59 7b 43 49 | 52 43 4c 45 7d 2c 20 5c |, \SY{CI|RCLE}, \|
|00001d60| 53 59 7b 45 58 43 4c 41 | 49 4d 7d 2c 20 5c 53 59 |SY{EXCLA|IM}, \SY|
|00001d70| 7b 48 41 4e 44 7d 2c 20 | 5c 53 59 7b 48 4f 55 52 |{HAND}, |\SY{HOUR|
|00001d80| 47 4c 41 53 7d 2c 0d 0a | 5c 53 59 7b 4b 49 54 45 |GLAS},..|\SY{KITE|
|00001d90| 7d 2c 20 5c 53 59 7b 4d | 45 53 48 7d 2c 20 5c 53 |}, \SY{M|ESH}, \S|
|00001da0| 59 7b 53 4d 41 4c 4c 7d | 2c 20 5c 53 59 7b 53 51 |Y{SMALL}|, \SY{SQ|
|00001db0| 55 41 52 45 7d 2c 20 5c | 53 59 7b 53 54 41 52 34 |UARE}, \|SY{STAR4|
|00001dc0| 7d 2c 20 5c 53 59 7b 54 | 45 58 54 7d 2c 20 5c 53 |}, \SY{T|EXT}, \S|
|00001dd0| 59 7b 58 7d 0d 0a 28 50 | 72 65 63 69 73 65 20 50 |Y{X}..(P|recise P|
|00001de0| 6f 69 6e 74 29 2e 20 5c | 5c 0d 0a 0d 0a 5c 4d 53 |oint). \|\....\MS|
|00001df0| 47 7b 54 45 58 54 2d 54 | 59 50 45 7d 7b 5c 53 59 |G{TEXT-T|YPE}{\SY|
|00001e00| 7b 53 4f 46 54 57 41 52 | 45 7d 20 61 6e 64 20 78 |{SOFTWAR|E} and x|
|00001e10| 6f 72 7d 20 26 20 53 65 | 74 73 20 74 68 65 20 74 |or} & Se|ts the t|
|00001e20| 65 78 74 2d 6d 6f 64 65 | 20 70 6f 69 6e 74 65 72 |ext-mode| pointer|
|00001e30| 20 74 6f 0d 0a 09 73 6f | 66 74 77 61 72 65 2c 20 | to...so|ftware, |
|00001e40| 69 2e 65 2e 5c 20 74 6f | 20 6d 6f 64 69 66 69 63 |i.e.\ to| modific|
|00001e50| 61 74 69 6f 6e 20 6f 66 | 20 63 68 61 72 61 63 74 |ation of| charact|
|00001e60| 65 72 73 20 6f 6e 20 74 | 68 65 20 73 63 72 65 65 |ers on t|he scree|
|00001e70| 6e 2e 0d 0a 09 7b 5c 69 | 74 20 61 6e 64 7d 20 61 |n....{\i|t and} a|
|00001e80| 6e 64 20 7b 5c 69 74 20 | 78 6f 72 7d 20 61 72 65 |nd {\it |xor} are|
|00001e90| 20 70 61 69 72 73 3a 20 | 5c 4c 69 73 74 7b 63 68 | pairs: |\List{ch|
|00001ea0| 61 72 61 63 74 65 72 20 | 2e 5c 20 61 74 74 72 69 |aracter |.\ attri|
|00001eb0| 62 75 74 65 7d 2e 0d 0a | 09 41 73 20 61 20 73 69 |bute}...|.As a si|
|00001ec0| 6d 70 6c 65 20 65 78 61 | 6d 70 6c 65 2c 0d 0a 09 |mple exa|mple,...|
|00001ed0| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00001ee0| 0d 0a 28 6d 6f 75 73 65 | 20 27 54 45 58 54 2d 54 |..(mouse| 'TEXT-T|
|00001ef0| 59 50 45 20 27 53 4f 46 | 54 57 41 52 45 0d 0a 20 |YPE 'SOF|TWARE.. |
|00001f00| 20 20 20 20 20 20 28 63 | 6f 6e 73 20 28 69 6e 74 | (c|ons (int|
|00001f10| 65 67 65 72 2d 3e 63 68 | 61 72 20 5c 23 78 66 66 |eger->ch|ar \#xff|
|00001f20| 29 20 5c 23 78 66 66 29 | 0d 0a 20 20 20 20 20 20 |) \#xff)|.. |
|00001f30| 20 28 63 6f 6e 73 20 28 | 69 6e 74 65 67 65 72 2d | (cons (|integer-|
|00001f40| 3e 63 68 61 72 20 30 29 | 20 5c 23 78 38 30 29 29 |>char 0)| \#x80))|
|00001f50| 7d 0d 0a 09 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |}...\end|{verbati|
|00001f60| 6d 7d 0d 0a 09 77 6f 75 | 6c 64 20 6d 61 6b 65 20 |m}...wou|ld make |
|00001f70| 74 68 65 20 63 68 61 72 | 61 63 74 65 72 20 75 6e |the char|acter un|
|00001f80| 64 65 72 20 74 68 65 20 | 70 6f 69 6e 74 65 72 20 |der the |pointer |
|00001f90| 62 6c 69 6e 6b 2e 20 5c | 5c 0d 0a 5c 4d 53 47 7b |blink. \|\..\MSG{|
|00001fa0| 54 45 58 54 2d 54 59 50 | 45 7d 7b 5c 53 59 7b 48 |TEXT-TYP|E}{\SY{H|
|00001fb0| 41 52 44 57 41 52 45 7d | 20 73 74 61 72 74 20 65 |ARDWARE}| start e|
|00001fc0| 6e 64 7d 20 26 20 53 65 | 74 73 20 74 68 65 20 74 |nd} & Se|ts the t|
|00001fd0| 65 78 74 2d 6d 6f 64 65 | 20 70 6f 69 6e 74 65 72 |ext-mode| pointer|
|00001fe0| 20 74 6f 0d 0a 09 68 61 | 72 64 77 61 72 65 2c 20 | to...ha|rdware, |
|00001ff0| 69 2e 65 2e 5c 20 75 73 | 65 73 20 74 68 65 20 63 |i.e.\ us|es the c|
|00002000| 75 72 73 6f 72 20 67 65 | 6e 65 72 61 74 6f 72 20 |ursor ge|nerator |
|00002010| 6f 66 20 74 68 65 20 67 | 72 61 70 68 69 63 73 20 |of the g|raphics |
|00002020| 61 64 61 70 74 65 72 2e | 0d 0a 09 7b 5c 69 74 20 |adapter.|...{\it |
|00002030| 73 74 61 72 74 7d 20 61 | 6e 64 20 7b 5c 69 74 20 |start} a|nd {\it |
|00002040| 65 6e 64 7d 20 61 72 65 | 20 74 68 65 20 73 74 61 |end} are| the sta|
|00002050| 72 74 2d 2d 20 61 6e 64 | 20 65 6e 64 2d 72 6f 77 |rt-- and| end-row|
|00002060| 73 20 6f 66 20 74 68 65 | 20 63 75 72 73 6f 72 2c |s of the| cursor,|
|00002070| 0d 0a 09 75 73 75 61 6c | 6c 79 20 69 6e 20 72 61 |...usual|ly in ra|
|00002080| 6e 67 65 20 30 2d 2d 38 | 20 6f 72 20 30 2d 2d 31 |nge 0--8| or 0--1|
|00002090| 36 2e 20 4e 6f 74 65 20 | 74 68 61 74 20 74 68 65 |6. Note |that the|
|000020a0| 20 63 75 72 73 6f 72 20 | 74 68 65 6e 20 73 65 72 | cursor |then ser|
|000020b0| 76 65 73 20 74 77 6f 0d | 0a 09 75 73 65 73 3b 20 |ves two.|..uses; |
|000020c0| 74 68 69 73 20 6d 6f 64 | 65 20 73 68 6f 75 6c 64 |this mod|e should|
|000020d0| 20 62 65 20 75 73 65 66 | 75 6c 20 65 73 70 65 63 | be usef|ul espec|
|000020e0| 69 61 6c 6c 79 20 69 6e | 20 61 6e 20 65 64 69 74 |ially in| an edit|
|000020f0| 6f 72 2c 20 69 66 20 74 | 68 65 0d 0a 09 6d 6f 75 |or, if t|he...mou|
|00002100| 73 65 20 6d 6f 76 65 73 | 20 61 72 65 20 69 6e 74 |se moves| are int|
|00002110| 65 72 70 72 65 74 65 64 | 20 61 73 20 63 75 72 73 |erpreted| as curs|
|00002120| 6f 72 20 70 6f 73 69 74 | 69 6f 6e 69 6e 67 2e 20 |or posit|ioning. |
|00002130| 5c 5c 0d 0a 5c 6d 73 67 | 7b 4d 49 43 4b 45 59 53 |\\..\msg|{MICKEYS|
|00002140| 7d 7b 7d 7b 5c 4c 69 73 | 74 7b 78 20 79 7d 7d 20 |}{}{\Lis|t{x y}} |
|00002150| 26 20 52 65 74 75 72 6e | 73 20 74 68 65 20 6d 6f |& Return|s the mo|
|00002160| 75 73 65 27 73 20 6d 6f | 76 65 6d 65 6e 74 20 69 |use's mo|vement i|
|00002170| 6e 20 4d 69 63 6b 65 79 | 73 0d 0a 09 73 69 6e 63 |n Mickey|s...sinc|
|00002180| 65 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 63 |e the pr|evious c|
|00002190| 61 6c 6c 20 74 6f 20 74 | 68 69 73 20 66 75 6e 63 |all to t|his func|
|000021a0| 74 69 6f 6e 2e 20 41 20 | 4d 69 63 6b 65 79 5c 69 |tion. A |Mickey\i|
|000021b0| 6e 64 65 78 7b 4d 69 63 | 6b 65 79 7d 20 69 73 0d |ndex{Mic|key} is.|
|000021c0| 0a 09 74 68 65 20 6d 6f | 75 73 65 27 73 20 66 75 |..the mo|use's fu|
|000021d0| 6e 64 61 6d 65 6e 74 61 | 6c 20 75 6e 69 74 2c 20 |ndamenta|l unit, |
|000021e0| 24 5c 61 70 70 72 6f 78 | 20 31 2f 32 30 30 5c 6d |$\approx| 1/200\m|
|000021f0| 62 6f 78 7b 69 6e 63 68 | 7d 24 2e 20 5c 5c 0d 0a |box{inch|}$. \\..|
|00002200| 5c 6d 73 67 7b 48 41 4e | 44 4c 45 52 7d 7b 68 61 |\msg{HAN|DLER}{ha|
|00002210| 6e 64 6c 65 72 7d 7b 6f | 6c 64 2d 68 61 6e 64 6c |ndler}{o|ld-handl|
|00002220| 65 72 7d 20 26 09 49 6e | 73 74 61 6c 6c 73 20 61 |er} &.In|stalls a|
|00002230| 6e 20 65 76 65 6e 74 20 | 68 61 6e 64 6c 65 72 2e |n event |handler.|
|00002240| 0d 0a 09 41 20 68 61 6e | 64 6c 65 72 20 69 73 20 |...A han|dler is |
|00002250| 61 20 6c 69 73 74 3a 20 | 5c 4c 69 73 74 7b 65 76 |a list: |\List{ev|
|00002260| 65 6e 74 73 20 2e 5c 20 | 70 72 6f 63 65 64 75 72 |ents .\ |procedur|
|00002270| 65 7d 2c 20 77 68 65 72 | 65 20 7b 5c 69 74 20 65 |e}, wher|e {\it e|
|00002280| 76 65 6e 74 73 7d 20 69 | 73 0d 0a 09 61 20 6c 69 |vents} i|s...a li|
|00002290| 73 74 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 61 6e |st conta|ining an|
|000022a0| 79 20 6f 66 20 5c 53 59 | 7b 4d 4f 56 45 7d 2c 20 |y of \SY|{MOVE}, |
|000022b0| 5c 53 59 7b 4c 45 46 54 | 2d 44 4f 57 4e 7d 2c 20 |\SY{LEFT|-DOWN}, |
|000022c0| 5c 53 59 7b 4c 45 46 54 | 2d 55 50 7d 2c 0d 0a 09 |\SY{LEFT|-UP},...|
|000022d0| 5c 53 59 7b 4c 45 46 54 | 7d 20 28 62 6f 74 68 20 |\SY{LEFT|} (both |
|000022e0| 6c 65 66 74 2d 62 75 74 | 74 6f 6e 20 6d 65 73 73 |left-but|ton mess|
|000022f0| 61 67 65 73 29 2c 20 5c | 53 59 7b 52 49 47 48 54 |ages), \|SY{RIGHT|
|00002300| 2d 44 4f 57 4e 7d 2c 20 | 5c 53 59 7b 52 49 47 48 |-DOWN}, |\SY{RIGH|
|00002310| 54 2d 55 50 7d 2c 0d 0a | 09 5c 53 59 7b 52 49 47 |T-UP},..|.\SY{RIG|
|00002320| 48 54 7d 2c 20 5c 53 59 | 7b 43 45 4e 54 45 52 2d |HT}, \SY|{CENTER-|
|00002330| 44 4f 57 4e 7d 2c 20 5c | 53 59 7b 43 45 4e 54 45 |DOWN}, \|SY{CENTE|
|00002340| 52 2d 55 50 7d 2c 20 5c | 53 59 7b 43 45 4e 54 45 |R-UP}, \|SY{CENTE|
|00002350| 52 7d 2c 20 5c 53 59 7b | 44 4f 57 4e 7d 2c 0d 0a |R}, \SY{|DOWN},..|
|00002360| 09 5c 53 59 7b 55 50 7d | 2c 20 61 6e 64 20 5c 53 |.\SY{UP}|, and \S|
|00002370| 59 7b 42 55 54 54 4f 4e | 53 7d 2e 0d 0a 09 57 68 |Y{BUTTON|S}....Wh|
|00002380| 65 6e 20 6f 6e 65 20 6f | 66 20 74 68 65 73 65 20 |en one o|f these |
|00002390| 65 76 65 6e 74 73 20 6f | 63 63 75 72 73 2c 20 7b |events o|ccurs, {|
|000023a0| 5c 69 74 20 70 72 6f 63 | 65 64 75 72 65 7d 20 77 |\it proc|edure} w|
|000023b0| 69 6c 6c 20 62 65 20 63 | 61 6c 6c 65 64 2e 0d 0a |ill be c|alled...|
|000023c0| 09 7b 5c 69 74 20 70 72 | 6f 63 65 64 75 72 65 7d |.{\it pr|ocedure}|
|000023d0| 27 73 20 61 72 67 75 6d | 65 6e 74 73 20 61 72 65 |'s argum|ents are|
|000023e0| 20 5c 4c 69 73 74 7b 74 | 72 69 67 67 65 72 69 6e | \List{t|riggerin|
|000023f0| 67 2d 65 76 65 6e 74 73 | 20 62 75 74 74 6f 6e 73 |g-events| buttons|
|00002400| 2d 64 6f 77 6e 0d 0a 09 | 78 20 79 20 6d 69 63 6b |-down...|x y mick|
|00002410| 65 79 73 2d 78 20 6d 69 | 63 6b 65 79 73 2d 79 20 |eys-x mi|ckeys-y |
|00002420| 65 76 65 6e 74 2d 74 69 | 6d 65 7d 2e 20 4e 6f 74 |event-ti|me}. Not|
|00002430| 65 20 74 68 61 74 20 7b | 5c 69 74 20 74 72 69 67 |e that {|\it trig|
|00002440| 67 65 72 69 6e 67 2d 65 | 76 65 6e 74 73 7d 0d 0a |gering-e|vents}..|
|00002450| 09 69 73 20 61 20 6c 69 | 73 74 2c 20 62 65 63 61 |.is a li|st, beca|
|00002460| 75 73 65 20 69 74 20 6d | 61 79 20 63 6f 6e 74 61 |use it m|ay conta|
|00002470| 69 6e 20 6d 6f 72 65 20 | 74 68 61 6e 20 6f 6e 65 |in more |than one|
|00002480| 20 65 76 65 6e 74 2e 0d | 0a 0d 0a 09 41 6e 20 69 | event..|....An i|
|00002490| 6d 70 6f 72 74 61 6e 74 | 20 74 68 69 6e 67 20 74 |mportant| thing t|
|000024a0| 6f 20 6d 65 6e 74 69 6f | 6e 20 69 73 20 74 68 61 |o mentio|n is tha|
|000024b0| 74 20 6e 6f 72 6d 61 6c | 6c 79 20 7b 5c 69 74 20 |t normal|ly {\it |
|000024c0| 70 72 6f 63 65 64 75 72 | 65 7d 20 77 69 6c 6c 0d |procedur|e} will.|
|000024d0| 0a 09 6e 6f 74 20 62 65 | 20 72 65 69 6e 76 6f 6b |..not be| reinvok|
|000024e0| 65 64 20 62 65 66 6f 72 | 65 20 69 74 20 72 65 74 |ed befor|e it ret|
|000024f0| 75 72 6e 73 2e 20 45 76 | 65 6e 74 73 20 74 68 61 |urns. Ev|ents tha|
|00002500| 74 20 6f 63 63 75 72 20 | 64 75 72 69 6e 67 20 7b |t occur |during {|
|00002510| 5c 69 74 0d 0a 09 70 72 | 6f 63 65 64 75 72 65 7d |\it...pr|ocedure}|
|00002520| 27 73 20 65 78 65 63 75 | 74 69 6f 6e 20 61 72 65 |'s execu|tion are|
|00002530| 20 6c 6f 73 74 2e 20 49 | 6e 20 70 61 72 74 69 63 | lost. I|n partic|
|00002540| 75 6c 61 72 2c 20 69 66 | 20 7b 5c 69 74 20 70 72 |ular, if| {\it pr|
|00002550| 6f 63 65 64 75 72 65 7d | 0d 0a 09 64 6f 65 73 20 |ocedure}|...does |
|00002560| 6e 6f 74 20 72 65 74 75 | 72 6e 20 28 69 6e 20 63 |not retu|rn (in c|
|00002570| 61 73 65 20 6f 66 20 65 | 72 72 6f 72 2c 20 66 6f |ase of e|rror, fo|
|00002580| 72 20 69 6e 73 74 61 6e | 63 65 29 2c 20 6d 6f 75 |r instan|ce), mou|
|00002590| 73 65 20 65 76 65 6e 74 | 73 0d 0a 09 72 65 6d 61 |se event|s...rema|
|000025a0| 69 6e 20 64 69 73 61 62 | 6c 65 64 2e 20 54 68 65 |in disab|led. The|
|000025b0| 79 20 63 61 6e 20 62 65 | 20 72 65 2d 65 6e 61 62 |y can be| re-enab|
|000025c0| 6c 65 64 20 77 69 74 68 | 20 74 68 65 20 6e 65 78 |led with| the nex|
|000025d0| 74 20 63 6f 6d 6d 61 6e | 64 2e 20 5c 5c 0d 0a 5c |t comman|d. \\..\|
|000025e0| 4d 53 47 7b 45 4e 41 42 | 4c 45 7d 7b 7d 20 26 20 |MSG{ENAB|LE}{} & |
|000025f0| 52 65 2d 65 6e 61 62 6c | 65 73 20 65 76 65 6e 74 |Re-enabl|es event|
|00002600| 20 68 61 6e 64 6c 69 6e | 67 2e 20 57 69 74 68 20 | handlin|g. With |
|00002610| 74 68 69 73 2c 20 72 65 | 2d 65 6e 74 72 61 6e 74 |this, re|-entrant|
|00002620| 0d 0a 09 6d 6f 75 73 65 | 2d 68 61 6e 64 6c 65 72 |...mouse|-handler|
|00002630| 73 20 63 61 6e 20 62 65 | 20 77 72 69 74 74 65 6e |s can be| written|
|00002640| 21 20 0d 0a 0d 0a 09 49 | 6e 20 69 74 73 20 6e 6f |! .....I|n its no|
|00002650| 72 6d 61 6c 20 6f 70 65 | 72 61 74 69 6e 67 20 6d |rmal ope|rating m|
|00002660| 6f 64 65 2c 20 7b 5c 74 | 74 20 6d 6f 75 73 65 7d |ode, {\t|t mouse}|
|00002670| 20 73 74 61 63 6b 73 20 | 75 70 20 6d 6f 75 73 65 | stacks |up mouse|
|00002680| 20 6d 65 73 73 61 67 65 | 73 0d 0a 09 61 6e 64 20 | message|s...and |
|00002690| 64 69 73 70 61 74 63 68 | 65 73 20 74 68 65 6d 20 |dispatch|es them |
|000026a0| 6f 6e 65 20 61 74 20 61 | 20 74 69 6d 65 2c 20 73 |one at a| time, s|
|000026b0| 65 6e 64 69 6e 67 20 74 | 68 65 20 6e 65 78 74 20 |ending t|he next |
|000026c0| 6d 65 73 73 61 67 65 20 | 77 68 65 6e 20 74 68 65 |message |when the|
|000026d0| 20 0d 0a 09 64 69 73 70 | 61 74 63 68 20 6f 66 20 | ...disp|atch of |
|000026e0| 74 68 65 20 70 72 65 76 | 69 6f 75 73 20 6f 6e 65 |the prev|ious one|
|000026f0| 20 72 65 74 75 72 6e 65 | 64 2e 20 49 66 20 74 68 | returne|d. If th|
|00002700| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 63 |is funct|ion is c|
|00002710| 61 6c 6c 65 64 2c 20 74 | 68 65 0d 0a 09 6d 65 73 |alled, t|he...mes|
|00002720| 73 61 67 65 2d 64 69 73 | 70 61 74 63 68 69 6e 67 |sage-dis|patching|
|00002730| 20 73 79 73 74 65 6d 20 | 69 73 20 73 70 61 77 6e | system |is spawn|
|00002740| 65 64 3b 20 69 6e 20 65 | 66 66 65 63 74 2c 20 63 |ed; in e|ffect, c|
|00002750| 61 6c 6c 69 6e 67 20 74 | 68 69 73 20 66 75 6e 63 |alling t|his func|
|00002760| 74 69 6f 6e 0d 0a 09 66 | 72 6f 6d 20 77 69 74 68 |tion...f|rom with|
|00002770| 69 6e 20 61 6e 20 65 76 | 65 6e 74 20 68 61 6e 64 |in an ev|ent hand|
|00002780| 6c 65 72 20 6d 61 79 20 | 72 65 73 75 6c 74 20 69 |ler may |result i|
|00002790| 6e 20 74 68 65 20 68 61 | 6e 64 6c 65 72 20 62 65 |n the ha|ndler be|
|000027a0| 69 6e 67 20 63 61 6c 6c | 65 64 0d 0a 09 60 60 72 |ing call|ed...``r|
|000027b0| 65 2d 65 6e 74 72 61 6e | 74 6c 79 27 27 2e 20 5c |e-entran|tly''. \|
|000027c0| 5c 0d 0a 5c 4d 53 47 7b | 44 49 53 41 42 4c 45 7d |\..\MSG{|DISABLE}|
|000027d0| 7b 7d 20 26 20 54 68 69 | 73 20 6d 65 73 73 61 67 |{} & Thi|s messag|
|000027e0| 65 20 73 75 70 70 72 65 | 73 73 65 73 20 72 65 2d |e suppre|sses re-|
|000027f0| 65 6e 74 72 61 6e 63 79 | 20 62 79 20 63 61 6e 63 |entrancy| by canc|
|00002800| 65 6c 6c 69 6e 67 20 74 | 68 65 0d 0a 09 65 66 66 |elling t|he...eff|
|00002810| 65 63 74 20 6f 66 20 61 | 20 70 72 65 76 69 6f 75 |ect of a| previou|
|00002820| 73 20 5c 53 79 7b 45 4e | 41 42 4c 45 7d 2e 20 5c |s \Sy{EN|ABLE}. \|
|00002830| 5c 0d 0a 5c 4d 53 47 7b | 50 45 4e 2d 4f 4e 7d 7b |\..\MSG{|PEN-ON}{|
|00002840| 7d 20 26 20 4d 69 63 72 | 6f 73 6f 66 74 20 4d 61 |} & Micr|osoft Ma|
|00002850| 6e 75 61 6c 20 73 61 79 | 73 20 60 60 7b 5c 62 66 |nual say|s ``{\bf|
|00002860| 20 4c 69 67 68 74 2d 50 | 65 6e 20 65 6d 75 6c 61 | Light-P|en emula|
|00002870| 74 69 6f 6e 3a 7d 20 45 | 6e 61 62 6c 65 73 20 6c |tion:} E|nables l|
|00002880| 69 67 68 74 0d 0a 09 70 | 65 6e 20 65 6d 75 6c 61 |ight...p|en emula|
|00002890| 74 69 6f 6e 20 62 79 20 | 74 68 65 20 6d 6f 75 73 |tion by |the mous|
|000028a0| 65 20 64 72 69 76 65 72 | 20 66 6f 72 20 49 42 4d |e driver| for IBM|
|000028b0| 20 42 41 53 49 43 2e 20 | 41 20 60 60 70 65 6e 20 | BASIC. |A ``pen |
|000028c0| 64 6f 77 6e 27 27 20 63 | 6f 6e 64 69 74 69 6f 6e |down'' c|ondition|
|000028d0| 0d 0a 09 69 73 20 63 72 | 65 61 74 65 64 20 62 79 |...is cr|eated by|
|000028e0| 20 73 69 6d 75 6c 74 61 | 6e 65 6f 75 73 6c 79 20 | simulta|neously |
|000028f0| 70 72 65 73 73 69 6e 67 | 20 74 68 65 20 6c 65 66 |pressing| the lef|
|00002900| 74 20 61 6e 64 20 72 69 | 67 68 74 20 6d 6f 75 73 |t and ri|ght mous|
|00002910| 65 20 62 75 74 74 6f 6e | 73 2e 27 27 0d 0a 09 49 |e button|s.''...I|
|00002920| 20 74 72 69 65 64 20 64 | 61 72 6e 20 68 61 72 64 | tried d|arn hard|
|00002930| 20 74 6f 20 75 6e 64 65 | 72 73 74 61 6e 64 20 74 | to unde|rstand t|
|00002940| 68 69 73 2c 20 77 69 74 | 68 6f 75 74 20 73 75 63 |his, wit|hout suc|
|00002950| 63 65 73 73 2e 20 5c 5c | 0d 0a 5c 4d 53 47 7b 50 |cess. \\|..\MSG{P|
|00002960| 45 4e 2d 4f 46 46 7d 7b | 7d 20 26 20 64 69 74 74 |EN-OFF}{|} & ditt|
|00002970| 6f 2e 20 5c 5c 0d 0a 5c | 4d 53 47 7b 4d 49 43 4b |o. \\..\|MSG{MICK|
|00002980| 45 59 2d 52 41 54 49 4f | 7d 7b 78 20 79 7d 20 26 |EY-RATIO|}{x y} &|
|00002990| 20 53 65 74 73 20 74 68 | 65 20 6e 75 6d 62 65 72 | Sets th|e number|
|000029a0| 20 6f 66 20 4d 69 63 6b | 65 79 73 20 70 65 72 20 | of Mick|eys per |
|000029b0| 38 20 70 69 78 65 6c 73 | 20 66 6f 72 0d 0a 09 68 |8 pixels| for...h|
|000029c0| 6f 72 69 7a 6f 6e 74 61 | 6c 20 61 6e 64 20 76 65 |orizonta|l and ve|
|000029d0| 72 74 69 63 61 6c 20 6d | 6f 75 73 65 20 6d 6f 74 |rtical m|ouse mot|
|000029e0| 69 6f 6e 2e 20 5c 5c 0d | 0a 5c 4d 53 47 7b 45 58 |ion. \\.|.\MSG{EX|
|000029f0| 43 4c 55 44 45 7d 7b 24 | 78 5f 30 24 20 24 78 5f |CLUDE}{$|x_0$ $x_|
|00002a00| 31 24 20 24 79 5f 30 24 | 20 24 79 5f 31 24 7d 20 |1$ $y_0$| $y_1$} |
|00002a10| 26 20 44 65 66 69 6e 65 | 73 20 61 20 72 65 63 74 |& Define|s a rect|
|00002a20| 61 6e 67 6c 65 20 77 69 | 74 68 69 6e 20 77 68 69 |angle wi|thin whi|
|00002a30| 63 68 0d 0a 09 74 68 65 | 20 6d 6f 75 73 65 20 69 |ch...the| mouse i|
|00002a40| 73 20 69 6e 76 69 73 69 | 62 6c 65 2e 20 5c 5c 0d |s invisi|ble. \\.|
|00002a50| 0a 5c 4d 53 47 7b 53 50 | 45 45 44 2d 54 48 52 45 |.\MSG{SP|EED-THRE|
|00002a60| 53 48 4f 4c 44 7d 7b 73 | 70 65 65 64 7d 20 26 20 |SHOLD}{s|peed} & |
|00002a70| 53 65 74 73 20 74 68 65 | 20 73 70 65 65 64 20 6c |Sets the| speed l|
|00002a80| 69 6d 69 74 20 62 65 74 | 77 65 65 6e 20 73 69 6d |imit bet|ween sim|
|00002a90| 70 6c 65 2d 2d 0d 0a 09 | 61 6e 64 20 64 6f 75 62 |ple--...|and doub|
|00002aa0| 6c 65 2d 73 70 65 65 64 | 20 6d 6f 74 69 6f 6e 2c |le-speed| motion,|
|00002ab0| 20 69 6e 20 4d 69 63 6b | 65 79 73 20 70 65 72 20 | in Mick|eys per |
|00002ac0| 73 65 63 6f 6e 64 2e 20 | 5c 5c 0d 0a 5c 6d 73 67 |second. |\\..\msg|
|00002ad0| 7b 53 45 4e 53 49 54 49 | 56 49 54 59 7d 7b 5b 78 |{SENSITI|VITY}{[x|
|00002ae0| 20 79 20 73 70 65 65 64 | 5d 7d 7b 5c 4c 69 73 74 | y speed|]}{\List|
|00002af0| 7b 78 20 79 20 73 70 65 | 65 64 7d 7d 20 26 20 52 |{x y spe|ed}} & R|
|00002b00| 65 61 64 73 20 6f 72 20 | 73 65 74 73 0d 0a 09 74 |eads or |sets...t|
|00002b10| 68 65 20 4d 69 63 6b 65 | 79 20 72 61 74 69 6f 20 |he Micke|y ratio |
|00002b20| 61 6e 64 20 73 70 65 65 | 64 20 74 68 72 65 73 68 |and spee|d thresh|
|00002b30| 6f 6c 64 2e 20 5c 5c 0d | 0a 5c 4d 53 47 7b 49 4e |old. \\.|.\MSG{IN|
|00002b40| 54 45 52 52 55 50 54 2d | 52 41 54 45 7d 7b 72 61 |TERRUPT-|RATE}{ra|
|00002b50| 74 65 7d 20 26 20 7b 5c | 69 74 20 72 61 74 65 7d |te} & {\|it rate}|
|00002b60| 20 63 61 6e 20 62 65 20 | 5c 53 79 7b 4e 4f 4e 45 | can be |\Sy{NONE|
|00002b70| 7d 2c 20 33 30 2c 20 35 | 30 2c 20 31 30 30 0d 0a |}, 30, 5|0, 100..|
|00002b80| 09 6f 72 20 32 30 30 2c | 20 61 6e 64 20 67 6f 76 |.or 200,| and gov|
|00002b90| 65 72 6e 73 20 74 68 65 | 20 74 72 61 64 65 6f 66 |erns the| tradeof|
|00002ba0| 66 20 62 65 74 77 65 65 | 6e 20 67 72 61 70 68 69 |f betwee|n graphi|
|00002bb0| 63 20 72 65 73 6f 6c 75 | 74 69 6f 6e 20 61 6e 64 |c resolu|tion and|
|00002bc0| 0d 0a 09 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 70 |...appli|cation p|
|00002bd0| 65 72 66 6f 72 6d 61 6e | 63 65 2e 20 49 74 20 69 |erforman|ce. It i|
|00002be0| 73 20 61 70 70 6c 69 63 | 61 62 6c 65 20 6f 6e 6c |s applic|able onl|
|00002bf0| 79 20 74 6f 20 74 68 65 | 20 7b 5c 73 63 20 49 6e |y to the| {\sc In|
|00002c00| 50 6f 72 74 7d 0d 0a 09 | 6d 6f 75 73 65 5c 69 6e |Port}...|mouse\in|
|00002c10| 64 65 78 7b 49 6e 50 6f | 72 74 7d 20 28 73 65 65 |dex{InPo|rt} (see|
|00002c20| 20 5c 53 79 7b 49 4e 46 | 4f 52 4d 41 54 49 4f 4e | \Sy{INF|ORMATION|
|00002c30| 7d 29 2e 20 5c 5c 0d 0a | 5c 6d 73 67 7b 50 4f 49 |}). \\..|\msg{POI|
|00002c40| 4e 54 45 52 2d 50 41 47 | 45 7d 7b 5b 70 61 67 65 |NTER-PAG|E}{[page|
|00002c50| 5d 7d 7b 70 61 67 65 7d | 20 26 20 52 65 61 64 73 |]}{page}| & Reads|
|00002c60| 20 6f 72 20 73 65 74 73 | 20 74 68 65 20 64 69 73 | or sets| the dis|
|00002c70| 70 6c 61 79 20 70 61 67 | 65 20 66 6f 72 20 74 68 |play pag|e for th|
|00002c80| 65 0d 0a 09 6d 6f 75 73 | 65 20 70 6f 69 6e 74 65 |e...mous|e pointe|
|00002c90| 72 2e 20 5c 5c 0d 0a 5c | 6d 73 67 7b 4c 41 4e 47 |r. \\..\|msg{LANG|
|00002ca0| 55 41 47 45 7d 7b 5b 6c | 61 6e 67 75 61 67 65 5d |UAGE}{[l|anguage]|
|00002cb0| 7d 7b 6c 61 6e 67 75 61 | 67 65 7d 20 26 09 52 65 |}{langua|ge} &.Re|
|00002cc0| 61 64 73 20 6f 72 20 73 | 65 74 73 20 74 68 65 20 |ads or s|ets the |
|00002cd0| 6c 61 6e 67 75 61 67 65 | 20 66 6f 72 20 6d 6f 75 |language| for mou|
|00002ce0| 73 65 0d 0a 09 64 72 69 | 76 65 72 20 6d 65 73 73 |se...dri|ver mess|
|00002cf0| 61 67 65 73 2e 20 7b 5c | 69 74 20 6c 61 6e 67 75 |ages. {\|it langu|
|00002d00| 61 67 65 7d 20 63 61 6e | 20 62 65 20 61 6e 79 20 |age} can| be any |
|00002d10| 6f 66 20 5c 53 79 7b 45 | 4e 47 4c 49 53 48 7d 2c |of \Sy{E|NGLISH},|
|00002d20| 20 5c 53 79 7b 46 52 45 | 4e 43 48 7d 2c 0d 0a 09 | \Sy{FRE|NCH},...|
|00002d30| 5c 53 79 7b 44 55 54 43 | 48 7d 2c 20 5c 53 79 7b |\Sy{DUTC|H}, \Sy{|
|00002d40| 47 45 52 4d 41 4e 7d 2c | 20 5c 53 79 7b 53 57 45 |GERMAN},| \Sy{SWE|
|00002d50| 44 49 53 48 7d 2c 20 5c | 53 79 7b 46 49 4e 4e 49 |DISH}, \|Sy{FINNI|
|00002d60| 53 48 7d 2c 20 5c 53 79 | 7b 53 50 41 4e 49 53 48 |SH}, \Sy|{SPANISH|
|00002d70| 7d 2c 0d 0a 09 5c 53 79 | 7b 50 4f 52 54 55 47 45 |},...\Sy|{PORTUGE|
|00002d80| 53 45 7d 20 6f 72 20 5c | 53 79 7b 49 54 41 4c 49 |SE} or \|Sy{ITALI|
|00002d90| 41 4e 7d 2e 20 5c 5c 0d | 0a 5c 6d 73 67 7b 49 4e |AN}. \\.|.\msg{IN|
|00002da0| 46 4f 52 4d 41 54 49 4f | 4e 7d 7b 7d 7b 5c 4c 69 |FORMATIO|N}{}{\Li|
|00002db0| 73 74 7b 76 65 72 73 69 | 6f 6e 20 74 79 70 65 20 |st{versi|on type |
|00002dc0| 49 52 51 7d 7d 20 26 0d | 0a 09 52 65 74 75 72 6e |IRQ}} &.|..Return|
|00002dd0| 73 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 6f 6e |s inform|ation on|
|00002de0| 20 74 68 65 20 6d 6f 75 | 73 65 20 64 72 69 76 65 | the mou|se drive|
|00002df0| 72 2e 20 7b 5c 69 74 20 | 76 65 72 73 69 6f 6e 7d |r. {\it |version}|
|00002e00| 20 69 73 20 61 20 66 6c | 6f 61 74 69 6e 67 2d 70 | is a fl|oating-p|
|00002e10| 6f 69 6e 74 0d 0a 09 6e | 75 6d 62 65 72 2e 20 7b |oint...n|umber. {|
|00002e20| 5c 69 74 20 74 79 70 65 | 7d 20 69 73 20 61 20 73 |\it type|} is a s|
|00002e30| 79 6d 62 6f 6c 3a 20 5c | 53 79 7b 42 55 53 7d 2c |ymbol: \|Sy{BUS},|
|00002e40| 20 5c 53 79 7b 53 45 52 | 49 41 4c 7d 2c 20 5c 53 | \Sy{SER|IAL}, \S|
|00002e50| 79 7b 49 4e 50 4f 52 54 | 7d 2c 0d 0a 09 5c 53 79 |y{INPORT|},...\Sy|
|00002e60| 7b 50 53 2f 32 7d 20 6f | 72 20 5c 53 79 7b 48 50 |{PS/2} o|r \Sy{HP|
|00002e70| 7d 2e 20 7b 5c 69 74 20 | 49 52 51 7d 20 69 73 20 |}. {\it |IRQ} is |
|00002e80| 61 6e 20 69 6e 74 65 67 | 65 72 2e 20 5c 5c 0d 0a |an integ|er. \\..|
|00002e90| 5c 65 6e 64 7b 73 75 70 | 65 72 74 61 62 75 6c 61 |\end{sup|ertabula|
|00002ea0| 72 7d 0d 0a 5c 73 65 74 | 6c 65 6e 67 74 68 7b 5c |r}..\set|length{\|
|00002eb0| 70 61 72 69 6e 64 65 6e | 74 7d 7b 5c 6f 6c 64 69 |parinden|t}{\oldi|
|00002ec0| 6e 64 65 6e 74 7d 0d 0a | 0d 0a 5c 63 68 61 70 74 |ndent}..|..\chapt|
|00002ed0| 65 72 7b 41 20 73 69 6d | 70 6c 65 20 65 78 61 6d |er{A sim|ple exam|
|00002ee0| 70 6c 65 7d 0d 0a 49 20 | 69 6e 63 6c 75 64 65 20 |ple}..I |include |
|00002ef0| 68 65 72 65 20 61 20 73 | 69 6d 70 6c 65 20 64 65 |here a s|imple de|
|00002f00| 6d 6f 20 6f 66 20 77 68 | 61 74 20 63 61 6e 20 62 |mo of wh|at can b|
|00002f10| 65 20 64 6f 6e 65 20 77 | 69 74 68 20 67 72 61 70 |e done w|ith grap|
|00002f20| 68 69 63 73 20 61 6e 64 | 20 6d 6f 75 73 65 3a 0d |hics and| mouse:.|
|00002f30| 0a 61 20 70 72 6f 67 72 | 61 6d 20 74 68 61 74 20 |.a progr|am that |
|00002f40| 64 72 61 77 73 20 6c 69 | 6e 65 73 20 61 74 20 72 |draws li|nes at r|
|00002f50| 61 6e 64 6f 6d 20 77 68 | 69 6c 65 20 74 68 65 20 |andom wh|ile the |
|00002f60| 70 6f 69 6e 74 65 72 20 | 28 72 65 70 72 65 73 65 |pointer |(represe|
|00002f70| 6e 74 69 6e 67 0d 0a 74 | 77 6f 20 65 79 65 73 29 |nting..t|wo eyes)|
|00002f80| 20 77 69 6e 6b 73 20 61 | 74 20 74 68 65 20 75 73 | winks a|t the us|
|00002f90| 65 72 20 77 68 65 6e 20 | 68 65 20 70 72 65 73 73 |er when |he press|
|00002fa0| 65 73 20 74 68 65 20 62 | 75 74 74 6f 6e 73 2e 0d |es the b|uttons..|
|00002fb0| 0a 7b 5c 73 6d 61 6c 6c | 5c 76 65 72 62 61 74 69 |.{\small|\verbati|
|00002fc0| 6d 69 6e 70 75 74 7b 2e | 2e 2f 73 61 6d 70 6c 65 |minput{.|./sample|
|00002fd0| 73 2f 65 79 65 73 2e 73 | 7d 7d 0d 0a 0d 0a 5c 70 |s/eyes.s|}}....\p|
|00002fe0| 61 72 74 5b 42 47 49 3a | 20 54 68 65 20 47 72 61 |art[BGI:| The Gra|
|00002ff0| 70 68 69 63 73 20 50 61 | 63 6b 61 67 65 5d 7b 42 |phics Pa|ckage]{B|
|00003000| 47 49 3a 0d 0a 54 68 65 | 20 47 72 61 70 68 69 63 |GI:..The| Graphic|
|00003010| 73 20 50 61 63 6b 61 67 | 65 5c 5c 0d 0a 7b 5c 73 |s Packag|e\\..{\s|
|00003020| 6c 5c 6e 6f 72 6d 61 6c | 73 69 7a 65 5c 6d 65 64 |l\normal|size\med|
|00003030| 69 75 6d 73 65 72 69 65 | 73 20 57 72 69 74 74 65 |iumserie|s Writte|
|00003040| 6e 20 62 79 20 4d 61 72 | 63 20 56 75 69 6c 6c 65 |n by Mar|c Vuille|
|00003050| 75 6d 69 65 72 7d 5c 5c | 0d 0a 7b 5c 73 6c 5c 6e |umier}\\|..{\sl\n|
|00003060| 6f 72 6d 61 6c 73 69 7a | 65 5c 6d 65 64 69 75 6d |ormalsiz|e\medium|
|00003070| 73 65 72 69 65 73 20 4c | 61 73 74 20 63 68 61 6e |series L|ast chan|
|00003080| 67 65 20 4f 63 74 6f 62 | 65 72 20 35 2c 20 31 39 |ge Octob|er 5, 19|
|00003090| 39 33 2e 20 46 69 72 73 | 74 20 64 72 61 66 74 20 |93. Firs|t draft |
|000030a0| 4e 6f 76 65 6d 62 65 72 | 20 32 37 2c 20 31 39 39 |November| 27, 199|
|000030b0| 32 7d 7d 0d 0a 0d 0a 5c | 63 68 61 70 74 65 72 7b |2}}....\|chapter{|
|000030c0| 55 73 65 72 27 73 20 6d | 61 6e 75 61 6c 7d 0d 0a |User's m|anual}..|
|000030d0| 0d 0a 5c 73 65 63 74 69 | 6f 6e 7b 57 68 61 74 20 |..\secti|on{What |
|000030e0| 69 73 20 42 47 49 3f 7d | 0d 0a 42 47 49 5c 69 6e |is BGI?}|..BGI\in|
|000030f0| 64 65 78 7b 42 47 49 7d | 20 69 73 20 61 20 70 6f |dex{BGI}| is a po|
|00003100| 77 65 72 66 75 6c 2c 20 | 73 74 61 6e 64 61 72 64 |werful, |standard|
|00003110| 2c 20 64 65 76 69 63 65 | 2d 61 64 61 70 74 61 62 |, device|-adaptab|
|00003120| 6c 65 20 69 6e 74 65 72 | 66 61 63 65 20 66 6f 72 |le inter|face for|
|00003130| 20 67 72 61 70 68 69 63 | 20 6f 75 74 70 75 74 2e | graphic| output.|
|00003140| 0d 0a 49 74 20 77 61 73 | 20 69 6e 74 72 6f 64 75 |..It was| introdu|
|00003150| 63 65 64 20 62 79 20 42 | 6f 72 6c 61 6e 64 5c 69 |ced by B|orland\i|
|00003160| 6e 64 65 78 7b 42 6f 72 | 6c 61 6e 64 7d 20 63 6f |ndex{Bor|land} co|
|00003170| 6d 70 69 6c 65 72 73 2c | 20 61 6e 64 20 67 69 76 |mpilers,| and giv|
|00003180| 65 20 70 72 6f 67 72 61 | 6d 6d 65 72 73 20 61 20 |e progra|mmers a |
|00003190| 63 6f 6d 70 6c 65 74 65 | 0d 0a 73 65 74 20 6f 66 |complete|..set of|
|000031a0| 20 67 72 61 70 68 69 63 | 20 70 72 69 6d 69 74 69 | graphic| primiti|
|000031b0| 76 65 73 2c 20 77 6f 72 | 6b 69 6e 67 20 6f 6e 20 |ves, wor|king on |
|000031c0| 65 76 65 72 79 20 64 65 | 76 69 63 65 20 66 6f 72 |every de|vice for|
|000031d0| 20 77 68 69 63 68 20 61 | 20 42 47 49 20 64 72 69 | which a| BGI dri|
|000031e0| 76 65 72 5c 69 6e 64 65 | 78 7b 64 72 69 76 65 72 |ver\inde|x{driver|
|000031f0| 7d 0d 0a 65 78 69 73 74 | 2e 20 49 6e 63 6c 75 64 |}..exist|. Includ|
|00003200| 65 64 20 77 69 74 68 20 | 74 68 69 73 20 76 65 72 |ed with |this ver|
|00003210| 73 69 6f 6e 20 6f 66 20 | 5c 70 63 73 2c 20 79 6f |sion of |\pcs, yo|
|00003220| 75 27 6c 6c 20 66 69 6e | 64 20 64 72 69 76 65 72 |u'll fin|d driver|
|00003230| 73 20 66 6f 72 0d 0a 5c | 63 67 61 2c 20 5c 6d 63 |s for..\|cga, \mc|
|00003240| 67 61 2c 20 5c 61 74 74 | 2c 20 5c 65 67 61 2c 20 |ga, \att|, \ega, |
|00003250| 5c 76 67 61 2c 20 5c 68 | 65 72 63 2c 20 5c 69 62 |\vga, \h|erc, \ib|
|00003260| 6d 2c 20 7b 5c 73 63 20 | 50 63 2d 33 32 37 30 7d |m, {\sc |Pc-3270}|
|00003270| 2c 20 5c 68 70 5c 20 61 | 6e 64 20 74 72 75 65 20 |, \hp\ a|nd true |
|00003280| 63 6f 6d 70 61 74 69 62 | 6c 65 73 5c 69 6e 64 65 |compatib|les\inde|
|00003290| 78 7b 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 7d |x{compat|ibility}|
|000032a0| 2e 0d 0a 0d 0a 59 6f 75 | 20 6d 61 79 20 75 73 65 |.....You| may use|
|000032b0| 20 61 6e 79 20 6f 74 68 | 65 72 20 42 47 49 20 64 | any oth|er BGI d|
|000032c0| 72 69 76 65 72 20 66 6f | 75 6e 64 20 6f 6e 20 70 |river fo|und on p|
|000032d0| 75 62 6c 69 63 20 73 69 | 74 65 73 20 6f 72 20 70 |ublic si|tes or p|
|000032e0| 72 6f 76 69 64 65 64 20 | 62 79 0d 0a 79 6f 75 72 |rovided |by..your|
|000032f0| 20 67 72 61 70 68 69 63 | 20 68 61 72 64 77 61 72 | graphic| hardwar|
|00003300| 65 20 76 65 6e 64 6f 72 | 20 28 73 75 63 68 20 61 |e vendor| (such a|
|00003310| 73 20 74 68 65 20 7b 5c | 74 74 20 53 56 47 41 2e |s the {\|tt SVGA.|
|00003320| 42 47 49 5c 69 6e 64 65 | 78 7b 42 47 49 40 2e 42 |BGI\inde|x{BGI@.B|
|00003330| 47 49 7d 7d 20 64 72 69 | 76 65 72 20 66 6f 72 0d |GI}} dri|ver for.|
|00003340| 0a 5c 73 76 67 61 5c 20 | 64 65 73 69 67 6e 65 64 |.\svga\ |designed|
|00003350| 20 66 6f 72 20 42 6f 72 | 6c 61 6e 64 5c 69 6e 64 | for Bor|land\ind|
|00003360| 65 78 7b 42 6f 72 6c 61 | 6e 64 7d 20 43 20 33 2e |ex{Borla|nd} C 3.|
|00003370| 30 20 74 6f 20 69 6d 70 | 72 6f 76 65 20 74 68 65 |0 to imp|rove the|
|00003380| 20 72 65 73 6f 6c 75 74 | 69 6f 6e 5c 69 6e 64 65 | resolut|ion\inde|
|00003390| 78 7b 72 65 73 6f 6c 75 | 74 69 6f 6e 7d 0d 0a 61 |x{resolu|tion}..a|
|000033a0| 6e 64 20 63 6f 6c 6f 72 | 5c 69 6e 64 65 78 7b 63 |nd color|\index{c|
|000033b0| 6f 6c 6f 72 7d 20 63 61 | 70 61 62 69 6c 69 74 69 |olor} ca|pabiliti|
|000033c0| 65 73 2e 0d 0a 0d 0a 59 | 6f 75 20 6d 61 79 20 61 |es.....Y|ou may a|
|000033d0| 6c 73 6f 20 75 73 65 20 | 74 68 65 20 74 77 6f 20 |lso use |the two |
|000033e0| 64 72 69 76 65 72 73 20 | 6f 6e 65 20 6f 66 20 75 |drivers |one of u|
|000033f0| 73 20 28 6c 62 29 20 68 | 61 73 20 77 72 69 74 74 |s (lb) h|as writt|
|00003400| 65 6e 2c 0d 0a 74 68 61 | 74 20 61 72 65 20 64 69 |en,..tha|t are di|
|00003410| 73 74 72 69 62 75 74 65 | 64 20 77 69 74 68 20 5c |stribute|d with \|
|00003420| 70 63 73 3a 20 7b 5c 74 | 74 20 53 50 59 2e 42 47 |pcs: {\t|t SPY.BG|
|00003430| 49 7d 5c 69 6e 64 65 78 | 7b 53 50 59 7d 20 61 6e |I}\index|{SPY} an|
|00003440| 64 20 7b 5c 74 74 20 50 | 53 2e 42 47 49 7d 2e 0d |d {\tt P|S.BGI}..|
|00003450| 0a 54 68 65 20 66 6f 72 | 6d 65 72 20 69 73 20 61 |.The for|mer is a|
|00003460| 20 64 65 62 75 67 67 69 | 6e 67 5c 69 6e 64 65 78 | debuggi|ng\index|
|00003470| 7b 64 65 62 75 67 67 69 | 6e 67 7d 20 61 69 64 20 |{debuggi|ng} aid |
|00003480| 74 68 61 74 20 70 72 69 | 6e 74 73 0d 0a 74 6f 20 |that pri|nts..to |
|00003490| 74 68 65 20 73 63 72 65 | 65 6e 20 61 6c 6c 20 74 |the scre|en all t|
|000034a0| 68 65 20 64 72 69 76 65 | 72 20 72 65 71 75 65 73 |he drive|r reques|
|000034b0| 74 73 2e 20 54 68 65 20 | 6c 61 74 74 65 72 20 63 |ts. The |latter c|
|000034c0| 72 65 61 74 65 73 20 61 | 20 50 6f 73 74 53 63 72 |reates a| PostScr|
|000034d0| 69 70 74 5c 69 6e 64 65 | 78 7b 50 6f 73 74 53 63 |ipt\inde|x{PostSc|
|000034e0| 72 69 70 74 7d 0d 0a 64 | 6f 63 75 6d 65 6e 74 5c |ript}..d|ocument\|
|000034f0| 69 6e 64 65 78 7b 64 6f | 63 75 6d 65 6e 74 7d 20 |index{do|cument} |
|00003500| 74 68 61 74 20 63 61 6e | 20 74 68 65 6e 20 62 65 |that can| then be|
|00003510| 20 69 6e 63 6f 72 70 6f | 72 61 74 65 64 20 69 6e | incorpo|rated in|
|00003520| 20 61 20 74 65 78 74 20 | 70 72 6f 63 65 73 73 6f | a text |processo|
|00003530| 72 20 6f 72 20 73 65 6e | 74 20 74 6f 0d 0a 61 20 |r or sen|t to..a |
|00003540| 70 72 69 6e 74 65 72 5c | 69 6e 64 65 78 7b 70 72 |printer\|index{pr|
|00003550| 69 6e 74 65 72 7d 2e 20 | 53 65 65 20 73 65 63 74 |inter}. |See sect|
|00003560| 69 6f 6e 7e 5c 72 65 66 | 7b 73 65 63 3a 64 72 69 |ion~\ref|{sec:dri|
|00003570| 76 65 72 73 7d 20 66 6f | 72 20 6d 6f 72 65 20 69 |vers} fo|r more i|
|00003580| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 0d 0a 0d 0a 5c |nformati|on.....\|
|00003590| 73 65 63 74 69 6f 6e 7b | 57 68 61 74 20 69 73 20 |section{|What is |
|000035a0| 64 69 66 66 65 72 65 6e | 74 20 69 6e 20 5c 70 63 |differen|t in \pc|
|000035b0| 73 27 73 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |s's impl|ementati|
|000035c0| 6f 6e 20 6f 66 20 42 47 | 49 3f 7d 0d 0a 5c 62 65 |on of BG|I?}..\be|
|000035d0| 67 69 6e 7b 69 74 65 6d | 69 7a 65 7d 0d 0a 5c 69 |gin{item|ize}..\i|
|000035e0| 74 65 6d 09 54 68 65 20 | 6e 61 6d 65 20 6f 66 20 |tem.The |name of |
|000035f0| 70 72 69 6d 69 74 69 76 | 65 73 20 61 6e 64 20 63 |primitiv|es and c|
|00003600| 6f 6e 73 74 61 6e 74 73 | 5c 69 6e 64 65 78 7b 63 |onstants|\index{c|
|00003610| 6f 6e 73 74 61 6e 74 73 | 7d 20 69 73 20 60 60 53 |onstants|} is ``S|
|00003620| 63 68 65 6d 65 2d 6c 69 | 6b 65 27 27 0d 0a 09 73 |cheme-li|ke''...s|
|00003630| 70 6c 69 74 74 65 64 20 | 69 6e 20 77 6f 72 64 73 |plitted |in words|
|00003640| 3a 0d 0a 09 5c 62 65 67 | 69 6e 7b 63 65 6e 74 65 |:...\beg|in{cente|
|00003650| 72 7d 0d 0a 09 5c 62 65 | 67 69 6e 7b 74 61 62 75 |r}...\be|gin{tabu|
|00003660| 6c 61 72 7d 7b 6c 63 6c | 7d 0d 0a 09 7b 5c 62 66 |lar}{lcl|}...{\bf|
|00003670| 20 42 6f 72 6c 61 6e 64 | 20 43 20 33 2e 30 7d 09 | Borland| C 3.0}.|
|00003680| 26 20 26 09 5c 70 63 73 | 20 5c 5c 5b 31 6d 6d 5d |& &.\pcs| \\[1mm]|
|00003690| 0d 0a 09 7b 5c 74 74 20 | 69 6e 69 74 67 72 61 70 |...{\tt |initgrap|
|000036a0| 68 28 2e 2e 2e 29 5c 69 | 6e 64 65 78 7b 69 6e 69 |h(...)\i|ndex{ini|
|000036b0| 74 67 72 61 70 68 28 5c | 6c 64 6f 74 73 29 7d 7d |tgraph(\|ldots)}}|
|000036c0| 09 26 20 24 5c 4c 6f 6e | 67 72 69 67 68 74 61 72 |.& $\Lon|grightar|
|000036d0| 72 6f 77 24 20 26 09 7b | 5c 74 74 20 28 69 6e 69 |row$ &.{|\tt (ini|
|000036e0| 74 2d 67 72 61 70 68 20 | 2e 2e 2e 29 7d 20 5c 5c |t-graph |...)} \\|
|000036f0| 0d 0a 09 7b 5c 74 74 20 | 73 65 74 63 6f 6c 6f 72 |...{\tt |setcolor|
|00003700| 28 7b 5c 69 74 74 20 4c | 49 47 48 54 42 4c 55 45 |({\itt L|IGHTBLUE|
|00003710| 7d 29 7d 20 26 20 24 5c | 4c 6f 6e 67 72 69 67 68 |})} & $\|Longrigh|
|00003720| 74 61 72 72 6f 77 24 20 | 26 20 7b 5c 74 74 20 28 |tarrow$ |& {\tt (|
|00003730| 73 65 74 2d 63 6f 6c 6f | 72 5c 74 74 69 6e 64 65 |set-colo|r\ttinde|
|00003740| 78 7b 53 45 54 2d 43 4f | 4c 4f 52 7d 20 5c 53 59 |x{SET-CO|LOR} \SY|
|00003750| 7b 4c 49 47 48 54 2d 42 | 4c 55 45 7d 29 7d 0d 0a |{LIGHT-B|LUE})}..|
|00003760| 09 5c 65 6e 64 7b 74 61 | 62 75 6c 61 72 7d 0d 0a |.\end{ta|bular}..|
|00003770| 09 5c 65 6e 64 7b 63 65 | 6e 74 65 72 7d 0d 0a 5c |.\end{ce|nter}..\|
|00003780| 69 74 65 6d 09 53 69 6e | 63 65 20 67 72 61 70 68 |item.Sin|ce graph|
|00003790| 69 63 20 63 6f 6e 73 74 | 61 6e 74 73 20 61 72 65 |ic const|ants are|
|000037a0| 20 63 6f 6e 74 65 78 74 | 75 61 6c 20 28 77 68 69 | context|ual (whi|
|000037b0| 63 68 20 69 73 20 6e 6f | 74 20 74 68 65 20 63 61 |ch is no|t the ca|
|000037c0| 73 65 20 69 6e 20 43 29 | 2c 0d 0a 09 77 65 20 68 |se in C)|,...we h|
|000037d0| 61 76 65 20 72 65 6d 6f | 76 65 64 20 72 65 64 75 |ave remo|ved redu|
|000037e0| 6e 64 61 6e 63 79 20 69 | 6e 20 73 79 6d 62 6f 6c |ndancy i|n symbol|
|000037f0| 5c 69 6e 64 65 78 7b 73 | 79 6d 62 6f 6c 21 72 65 |\index{s|ymbol!re|
|00003800| 64 75 6e 64 61 6e 63 79 | 7d 20 6e 61 6d 65 73 3a |dundancy|} names:|
|00003810| 0d 0a 09 5c 62 65 67 69 | 6e 7b 63 65 6e 74 65 72 |...\begi|n{center|
|00003820| 7d 0d 0a 09 5c 62 65 67 | 69 6e 7b 74 61 62 75 6c |}...\beg|in{tabul|
|00003830| 61 72 7d 7b 6c 63 6c 7d | 0d 0a 09 7b 5c 62 66 20 |ar}{lcl}|...{\bf |
|00003840| 42 6f 72 6c 61 6e 64 20 | 43 20 33 2e 30 7d 09 26 |Borland |C 3.0}.&|
|00003850| 20 26 09 5c 70 63 73 20 | 5c 5c 5b 31 6d 6d 5d 0d | &.\pcs |\\[1mm].|
|00003860| 0a 09 7b 5c 74 74 20 73 | 65 74 6c 69 6e 65 73 74 |..{\tt s|etlinest|
|00003870| 79 6c 65 28 7b 5c 69 74 | 74 20 44 4f 54 54 45 44 |yle({\it|t DOTTED|
|00003880| 5c 5f 4c 49 4e 45 7d 2c | 20 2e 2e 2e 29 7d 20 26 |\_LINE},| ...)} &|
|00003890| 20 24 5c 4c 6f 6e 67 72 | 69 67 68 74 61 72 72 6f | $\Longr|ightarro|
|000038a0| 77 24 20 26 0d 0a 09 09 | 7b 5c 74 74 20 28 73 65 |w$ &....|{\tt (se|
|000038b0| 74 2d 6c 69 6e 65 2d 73 | 74 79 6c 65 5c 74 74 69 |t-line-s|tyle\tti|
|000038c0| 6e 64 65 78 7b 53 45 54 | 2d 4c 49 4e 45 2d 53 54 |ndex{SET|-LINE-ST|
|000038d0| 59 4c 45 7d 20 5c 53 59 | 7b 44 4f 54 54 45 44 7d |YLE} \SY|{DOTTED}|
|000038e0| 20 2e 2e 2e 29 7d 20 5c | 5c 0d 0a 09 7b 5c 74 74 | ...)} \|\...{\tt|
|000038f0| 20 73 65 74 74 65 78 74 | 73 74 79 6c 65 28 7b 5c | settext|style({\|
|00003900| 69 74 74 20 47 4f 54 48 | 49 43 5c 5f 46 4f 4e 54 |itt GOTH|IC\_FONT|
|00003910| 7d 5c 69 6e 64 65 78 7b | 66 6f 6e 74 21 67 6f 74 |}\index{|font!got|
|00003920| 68 69 63 7d 2c 20 7b 5c | 69 74 74 20 48 4f 52 49 |hic}, {\|itt HORI|
|00003930| 5a 5c 5f 44 49 52 7d 2c | 20 34 29 7d 20 26 0d 0a |Z\_DIR},| 4)} &..|
|00003940| 09 09 24 5c 4c 6f 6e 67 | 72 69 67 68 74 61 72 72 |..$\Long|rightarr|
|00003950| 6f 77 24 20 26 20 7b 5c | 74 74 20 28 73 65 74 2d |ow$ & {\|tt (set-|
|00003960| 74 65 78 74 2d 73 74 79 | 6c 65 5c 74 74 69 6e 64 |text-sty|le\ttind|
|00003970| 65 78 7b 53 45 54 2d 54 | 45 58 54 2d 53 54 59 4c |ex{SET-T|EXT-STYL|
|00003980| 45 7d 20 5c 53 59 7b 47 | 4f 54 48 49 43 7d 0d 0a |E} \SY{G|OTHIC}..|
|00003990| 09 09 7b 5c 69 74 74 20 | 48 4f 52 49 5a 7d 20 34 |..{\itt |HORIZ} 4|
|000039a0| 29 7d 0d 0a 09 5c 65 6e | 64 7b 74 61 62 75 6c 61 |)}...\en|d{tabula|
|000039b0| 72 7d 0d 0a 09 5c 65 6e | 64 7b 63 65 6e 74 65 72 |r}...\en|d{center|
|000039c0| 7d 0d 0a 5c 69 74 65 6d | 09 53 6f 6d 65 20 70 61 |}..\item|.Some pa|
|000039d0| 72 61 6d 65 74 65 72 73 | 20 61 72 65 20 6f 70 74 |rameters| are opt|
|000039e0| 69 6f 6e 61 6c 5c 69 6e | 64 65 78 7b 61 72 67 75 |ional\in|dex{argu|
|000039f0| 6d 65 6e 74 73 21 6f 70 | 74 69 6f 6e 61 6c 7d 2e |ments!op|tional}.|
|00003a00| 20 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 | The fol|lowing c|
|00003a10| 6f 6d 6d 61 6e 64 73 2c | 20 66 6f 72 20 69 6e 73 |ommands,| for ins|
|00003a20| 74 61 6e 63 65 2c 0d 0a | 09 61 72 65 20 61 6c 6c |tance,..|.are all|
|00003a30| 20 65 71 75 69 76 61 6c | 65 6e 74 3a 0d 0a 09 5c | equival|ent:...\|
|00003a40| 62 65 67 69 6e 7b 63 65 | 6e 74 65 72 7d 0d 0a 09 |begin{ce|nter}...|
|00003a50| 5c 62 65 67 69 6e 7b 66 | 6c 75 73 68 6c 65 66 74 |\begin{f|lushleft|
|00003a60| 7d 0d 0a 09 7b 5c 74 74 | 20 28 69 6e 69 74 2d 67 |}...{\tt| (init-g|
|00003a70| 72 61 70 68 20 5c 53 59 | 7b 44 45 54 45 43 54 7d |raph \SY|{DETECT}|
|00003a80| 20 30 20 22 22 29 7d 20 | 5c 5c 0d 0a 09 7b 5c 74 | 0 "")} |\\...{\t|
|00003a90| 74 20 28 69 6e 69 74 2d | 67 72 61 70 68 20 5c 53 |t (init-|graph \S|
|00003aa0| 59 7b 44 45 54 45 43 54 | 7d 20 30 29 7d 20 5c 5c |Y{DETECT|} 0)} \\|
|00003ab0| 0d 0a 09 7b 5c 74 74 20 | 28 69 6e 69 74 2d 67 72 |...{\tt |(init-gr|
|00003ac0| 61 70 68 20 5c 53 59 7b | 44 45 54 45 43 54 7d 29 |aph \SY{|DETECT})|
|00003ad0| 7d 20 5c 5c 0d 0a 09 7b | 5c 74 74 20 28 69 6e 69 |} \\...{|\tt (ini|
|00003ae0| 74 2d 67 72 61 70 68 29 | 7d 0d 0a 09 5c 65 6e 64 |t-graph)|}...\end|
|00003af0| 7b 66 6c 75 73 68 6c 65 | 66 74 7d 0d 0a 09 5c 65 |{flushle|ft}...\e|
|00003b00| 6e 64 7b 63 65 6e 74 65 | 72 7d 0d 0a 5c 69 74 65 |nd{cente|r}..\ite|
|00003b10| 6d 09 53 74 61 74 69 63 | 20 73 74 72 75 63 74 75 |m.Static| structu|
|00003b20| 72 65 73 20 68 61 76 65 | 20 62 65 65 6e 20 72 65 |res have| been re|
|00003b30| 70 6c 61 63 65 64 20 62 | 79 20 6c 69 73 74 73 5c |placed b|y lists\|
|00003b40| 69 6e 64 65 78 7b 6c 69 | 73 74 73 7d 2e 0d 0a 09 |index{li|sts}....|
|00003b50| 46 6f 72 20 69 6e 73 74 | 61 6e 63 65 2c 20 61 20 |For inst|ance, a |
|00003b60| 70 6f 6c 79 67 6f 6e 5c | 69 6e 64 65 78 7b 70 6f |polygon\|index{po|
|00003b70| 6c 79 67 6f 6e 7d 20 69 | 73 20 6e 6f 74 20 61 6e |lygon} i|s not an|
|00003b80| 20 69 6e 74 65 67 65 72 | 20 61 6e 64 20 61 6e 20 | integer| and an |
|00003b90| 61 72 72 61 79 2c 0d 0a | 09 62 75 74 20 73 69 6d |array,..|.but sim|
|00003ba0| 70 6c 79 20 61 20 6c 69 | 73 74 20 6f 66 20 70 6f |ply a li|st of po|
|00003bb0| 69 6e 74 73 5c 69 6e 64 | 65 78 7b 70 6f 69 6e 74 |ints\ind|ex{point|
|00003bc0| 7d 2e 0d 0a 5c 69 74 65 | 6d 09 54 68 65 20 63 6f |}...\ite|m.The co|
|00003bd0| 6f 72 64 69 6e 61 74 65 | 5c 69 6e 64 65 78 7b 63 |ordinate|\index{c|
|00003be0| 6f 6f 72 64 69 6e 61 74 | 65 7d 20 73 79 73 74 65 |oordinat|e} syste|
|00003bf0| 6d 20 63 61 6e 20 62 65 | 20 63 6f 6d 70 6c 65 74 |m can be| complet|
|00003c00| 65 6c 79 20 61 64 61 70 | 74 65 64 20 62 79 20 74 |ely adap|ted by t|
|00003c10| 68 65 20 75 73 65 72 2e | 0d 0a 5c 69 74 65 6d 09 |he user.|..\item.|
|00003c20| 54 77 69 6e 2d 66 75 6e | 63 74 69 6f 6e 73 20 72 |Twin-fun|ctions r|
|00003c30| 65 74 75 72 6e 69 6e 67 | 20 58 20 61 6e 64 20 59 |eturning| X and Y|
|00003c40| 20 76 61 6c 75 65 73 20 | 68 61 76 65 20 62 65 65 | values |have bee|
|00003c50| 6e 20 6a 6f 69 6e 65 64 | 20 61 6e 64 20 70 72 6f |n joined| and pro|
|00003c60| 64 75 63 65 0d 0a 09 61 | 20 70 6f 69 6e 74 20 28 |duce...a| point (|
|00003c70| 69 2e 65 2e 5c 20 61 20 | 70 61 69 72 29 2e 20 54 |i.e.\ a |pair). T|
|00003c80| 68 69 73 20 69 73 20 74 | 72 75 65 20 66 6f 72 20 |his is t|rue for |
|00003c90| 74 65 78 74 20 6d 65 61 | 73 75 72 65 6d 65 6e 74 |text mea|surement|
|00003ca0| 2c 20 74 6f 6f 2e 0d 0a | 5c 69 74 65 6d 09 53 70 |, too...|\item.Sp|
|00003cb0| 65 63 69 61 6c 20 6d 65 | 6d 6f 72 79 20 61 6c 6c |ecial me|mory all|
|00003cc0| 6f 63 61 74 69 6f 6e 20 | 66 75 6e 63 74 69 6f 6e |ocation |function|
|00003cd0| 73 20 68 61 76 65 20 6e | 6f 74 20 62 65 65 6e 20 |s have n|ot been |
|00003ce0| 69 6e 63 6c 75 64 65 64 | 2e 0d 0a 5c 65 6e 64 7b |included|...\end{|
|00003cf0| 69 74 65 6d 69 7a 65 7d | 0d 0a 0d 0a 5c 73 65 63 |itemize}|....\sec|
|00003d00| 74 69 6f 6e 7b 43 6f 6f | 72 64 69 6e 61 74 65 20 |tion{Coo|rdinate |
|00003d10| 73 79 73 74 65 6d 73 7d | 5c 69 6e 64 65 78 7b 63 |systems}|\index{c|
|00003d20| 6f 6f 72 64 69 6e 61 74 | 65 7d 0d 0a 4d 6f 73 74 |oordinat|e}..Most|
|00003d30| 20 67 72 61 70 68 69 63 | 20 70 72 69 6d 69 74 69 | graphic| primiti|
|00003d40| 76 65 73 20 68 61 76 65 | 20 74 6f 20 70 6c 61 63 |ves have| to plac|
|00003d50| 65 20 6f 62 6a 65 63 74 | 73 2c 20 6f 6e 20 74 68 |e object|s, on th|
|00003d60| 65 20 73 63 72 65 65 6e | 20 66 6f 72 20 69 6e 73 |e screen| for ins|
|00003d70| 74 61 6e 63 65 2c 0d 0a | 67 69 76 65 6e 20 73 6f |tance,..|given so|
|00003d80| 6d 65 20 63 6f 6f 72 64 | 69 6e 61 74 65 73 3b 20 |me coord|inates; |
|00003d90| 77 65 20 63 61 6c 6c 20 | 61 20 60 60 70 6f 69 6e |we call |a ``poin|
|00003da0| 74 5c 69 6e 64 65 78 7b | 70 6f 69 6e 74 7d 27 27 |t\index{|point}''|
|00003db0| 20 74 68 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | the inf|ormation|
|00003dc0| 0d 0a 6e 65 63 65 73 73 | 61 72 79 20 74 6f 20 65 |..necess|ary to e|
|00003dd0| 78 70 6c 69 63 69 74 20 | 61 20 6c 6f 63 61 74 69 |xplicit |a locati|
|00003de0| 6f 6e 20 6f 6e 20 74 68 | 65 20 6f 75 74 70 75 74 |on on th|e output|
|00003df0| 20 64 65 76 69 63 65 2e | 0d 0a 0d 0a 42 79 20 64 | device.|....By d|
|00003e00| 65 66 61 75 6c 74 2c 20 | 61 20 70 6f 69 6e 74 5c |efault, |a point\|
|00003e10| 69 6e 64 65 78 7b 70 6f | 69 6e 74 7d 20 69 73 20 |index{po|int} is |
|00003e20| 61 20 70 61 69 72 20 6f | 66 20 77 68 6f 6c 65 20 |a pair o|f whole |
|00003e30| 6e 75 6d 62 65 72 73 2c | 20 74 68 65 20 58 20 61 |numbers,| the X a|
|00003e40| 6e 64 20 59 20 63 6f 6f | 72 64 69 6e 61 74 65 73 |nd Y coo|rdinates|
|00003e50| 2c 0d 0a 61 6e 64 20 74 | 68 65 72 65 66 6f 72 65 |,..and t|herefore|
|00003e60| 20 69 74 20 69 73 20 68 | 69 67 68 6c 79 20 64 65 | it is h|ighly de|
|00003e70| 76 69 63 65 2d 64 65 70 | 65 6e 64 65 6e 74 3a 20 |vice-dep|endent: |
|00003e80| 75 73 69 6e 67 20 61 20 | 43 6f 6c 6f 72 20 47 72 |using a |Color Gr|
|00003e90| 61 70 68 69 63 20 41 64 | 61 70 74 65 72 0d 0a 28 |aphic Ad|apter..(|
|00003ea0| 5c 63 67 61 29 20 6d 6f | 64 65 5c 69 6e 64 65 78 |\cga) mo|de\index|
|00003eb0| 7b 6d 6f 64 65 21 67 72 | 61 70 68 69 63 73 7d 2c |{mode!gr|aphics},|
|00003ec0| 20 66 6f 72 20 69 6e 73 | 74 61 6e 63 65 2c 20 74 | for ins|tance, t|
|00003ed0| 68 65 20 76 61 6c 69 64 | 20 63 6f 6f 72 64 69 6e |he valid| coordin|
|00003ee0| 61 74 65 20 72 61 6e 67 | 65 20 69 73 0d 0a 5c 53 |ate rang|e is..\S|
|00003ef0| 79 7b 28 30 20 2e 5c 20 | 30 29 7d 20 74 68 72 6f |y{(0 .\ |0)} thro|
|00003f00| 75 67 68 20 5c 53 79 7b | 28 33 31 39 20 2e 5c 20 |ugh \Sy{|(319 .\ |
|00003f10| 31 39 39 29 7d 20 69 6e | 20 34 2d 63 6f 6c 6f 72 |199)} in| 4-color|
|00003f20| 5c 69 6e 64 65 78 7b 63 | 6f 6c 6f 72 21 34 2d 63 |\index{c|olor!4-c|
|00003f30| 6f 6c 6f 72 7d 20 6d 6f | 64 65 2c 0d 0a 61 6e 64 |olor} mo|de,..and|
|00003f40| 20 5c 53 79 7b 28 30 20 | 2e 5c 20 30 29 7d 20 61 | \Sy{(0 |.\ 0)} a|
|00003f50| 6e 64 20 5c 53 79 7b 28 | 36 33 39 20 2e 5c 20 31 |nd \Sy{(|639 .\ 1|
|00003f60| 39 39 29 7d 20 69 6e 20 | 42 6c 61 63 6b 5c 26 57 |99)} in |Black\&W|
|00003f70| 68 69 74 65 20 6d 6f 64 | 65 2e 0d 0a 57 69 74 68 |hite mod|e...With|
|00003f80| 20 61 20 48 65 72 63 75 | 6c 65 73 2d 6d 6f 6e 6f | a Hercu|les-mono|
|00003f90| 63 68 72 6f 6d 65 20 61 | 64 61 70 74 65 72 2c 20 |chrome a|dapter, |
|00003fa0| 74 68 65 20 72 61 6e 67 | 65 20 62 65 63 6f 6d 65 |the rang|e become|
|00003fb0| 73 0d 0a 5c 53 79 7b 28 | 30 20 2e 5c 20 30 29 7d |s..\Sy{(|0 .\ 0)}|
|00003fc0| 20 74 68 72 6f 75 67 68 | 20 5c 53 79 7b 28 37 31 | through| \Sy{(71|
|00003fd0| 39 20 2e 5c 20 33 34 37 | 29 7d 2c 20 61 6e 64 20 |9 .\ 347|)}, and |
|00003fe0| 73 6f 20 6f 6e 3b 20 5c | 53 79 7b 28 30 20 2e 5c |so on; \|Sy{(0 .\|
|00003ff0| 20 30 29 7d 20 69 73 20 | 0d 0a 61 6c 77 61 79 73 | 0)} is |..always|
|00004000| 20 74 68 65 20 75 70 70 | 65 72 20 6c 65 66 74 20 | the upp|er left |
|00004010| 63 6f 72 6e 65 72 20 6f | 66 20 74 68 65 20 73 63 |corner o|f the sc|
|00004020| 72 65 65 6e 2c 20 63 6f | 6e 74 72 61 72 79 20 74 |reen, co|ntrary t|
|00004030| 6f 20 6d 61 74 68 65 6d | 61 74 69 63 61 6c 0d 0a |o mathem|atical..|
|00004040| 74 72 61 64 69 74 69 6f | 6e 2e 20 4e 6f 74 65 20 |traditio|n. Note |
|00004050| 74 68 61 74 20 42 47 49 | 20 72 6f 75 74 69 6e 65 |that BGI| routine|
|00004060| 73 20 75 73 75 61 6c 6c | 79 20 63 6c 69 70 5c 69 |s usuall|y clip\i|
|00004070| 6e 64 65 78 7b 63 6c 69 | 70 70 69 6e 67 7d 20 74 |ndex{cli|pping} t|
|00004080| 68 65 69 72 20 70 61 72 | 61 6d 65 74 65 72 73 20 |heir par|ameters |
|00004090| 74 6f 0d 0a 74 68 65 20 | 73 63 72 65 65 6e 20 72 |to..the |screen r|
|000040a0| 65 63 74 61 6e 67 6c 65 | 2e 0d 0a 0d 0a 4e 6f 77 |ectangle|.....Now|
|000040b0| 20 5c 70 63 73 5c 20 61 | 6c 6c 6f 77 73 20 79 6f | \pcs\ a|llows yo|
|000040c0| 75 20 74 6f 20 66 72 65 | 65 6c 79 20 64 65 66 69 |u to fre|ely defi|
|000040d0| 6e 65 20 74 68 65 20 63 | 6f 6f 72 64 69 6e 61 74 |ne the c|oordinat|
|000040e0| 65 20 73 79 73 74 65 6d | 20 79 6f 75 27 64 20 6c |e system| you'd l|
|000040f0| 69 6b 65 20 74 6f 0d 0a | 75 73 65 2e 20 59 6f 75 |ike to..|use. You|
|00004100| 20 6f 6e 6c 79 20 6e 65 | 65 64 20 74 6f 20 73 70 | only ne|ed to sp|
|00004110| 65 63 69 66 79 20 74 68 | 65 20 64 65 73 69 72 65 |ecify th|e desire|
|00004120| 64 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 6f 66 |d coordi|nates of|
|00004130| 20 74 68 65 20 75 70 70 | 65 72 20 6c 65 66 74 20 | the upp|er left |
|00004140| 0d 0a 61 6e 64 20 62 6f | 74 74 6f 6d 20 72 69 67 |..and bo|ttom rig|
|00004150| 68 74 20 63 6f 72 6e 65 | 72 2c 20 6e 6f 20 6d 61 |ht corne|r, no ma|
|00004160| 74 74 65 72 20 77 68 69 | 63 68 20 76 69 64 65 6f |tter whi|ch video|
|00004170| 20 61 64 61 70 74 65 72 | 20 6f 72 20 6f 74 68 65 | adapter| or othe|
|00004180| 72 20 64 65 76 69 63 65 | 0d 0a 69 73 20 70 72 65 |r device|..is pre|
|00004190| 73 65 6e 74 2e 20 41 20 | 74 79 70 69 63 61 6c 20 |sent. A |typical |
|000041a0| 73 65 71 75 65 6e 63 65 | 20 77 6f 75 6c 64 20 62 |sequence| would b|
|000041b0| 65 3a 0d 0a 5c 62 65 67 | 69 6e 7b 63 65 6e 74 65 |e:..\beg|in{cente|
|000041c0| 72 7d 0d 0a 5c 62 65 67 | 69 6e 7b 74 61 62 62 69 |r}..\beg|in{tabbi|
|000041d0| 6e 67 7d 0d 0a 7b 5c 74 | 74 20 28 73 65 74 2d 77 |ng}..{\t|t (set-w|
|000041e0| 6f 72 6c 64 21 20 5c 53 | 79 7b 28 2d 31 30 30 20 |orld! \S|y{(-100 |
|000041f0| 2e 5c 20 2d 31 30 30 29 | 7d 20 5c 53 79 7b 28 31 |.\ -100)|} \Sy{(1|
|00004200| 30 30 20 2e 5c 20 31 30 | 30 29 7d 29 7d 09 5c 3d |00 .\ 10|0)})}.\=|
|00004210| 20 5c 6b 69 6c 6c 0d 0a | 7b 5c 74 74 20 28 69 6e | \kill..|{\tt (in|
|00004220| 69 74 2d 67 72 61 70 68 | 29 7d 09 5c 3e 20 3b 20 |it-graph|)}.\> ; |
|00004230| 64 65 74 65 63 74 20 61 | 6e 64 20 69 6e 69 74 69 |detect a|nd initi|
|00004240| 61 6c 69 7a 65 20 76 69 | 64 65 6f 20 61 64 61 70 |alize vi|deo adap|
|00004250| 74 65 72 20 5c 5c 0d 0a | 7b 5c 74 74 20 28 73 65 |ter \\..|{\tt (se|
|00004260| 74 2d 77 6f 72 6c 64 21 | 20 5c 53 79 7b 28 2d 31 |t-world!| \Sy{(-1|
|00004270| 30 30 20 2e 5c 20 2d 31 | 30 30 29 7d 20 5c 53 79 |00 .\ -1|00)} \Sy|
|00004280| 7b 28 31 30 30 20 2e 5c | 20 31 30 30 29 7d 29 7d |{(100 .\| 100)})}|
|00004290| 0d 0a 09 5c 3e 20 3b 20 | 73 65 74 20 74 68 65 20 |...\> ; |set the |
|000042a0| 73 63 72 65 65 6e 20 63 | 6f 6f 72 64 69 6e 61 74 |screen c|oordinat|
|000042b0| 65 73 20 77 69 74 68 20 | 6f 72 69 67 69 6e 20 63 |es with |origin c|
|000042c0| 65 6e 74 65 72 65 64 20 | 5c 5c 0d 0a 7b 5c 74 74 |entered |\\..{\tt|
|000042d0| 20 28 70 75 74 2d 70 69 | 78 65 6c 5c 69 6e 64 65 | (put-pi|xel\inde|
|000042e0| 78 7b 70 69 78 65 6c 7d | 20 5c 53 79 7b 28 30 20 |x{pixel}| \Sy{(0 |
|000042f0| 2e 5c 20 30 29 7d 20 5c | 53 59 7b 42 4c 55 45 7d |.\ 0)} \|SY{BLUE}|
|00004300| 29 7d 0d 0a 09 5c 3e 20 | 3b 20 70 6c 6f 74 5c 69 |)}...\> |; plot\i|
|00004310| 6e 64 65 78 7b 70 6c 6f | 74 7d 20 61 20 62 6c 75 |ndex{plo|t} a blu|
|00004320| 65 20 70 69 78 65 6c 20 | 61 74 20 63 65 6e 74 65 |e pixel |at cente|
|00004330| 72 20 6f 66 20 73 63 72 | 65 65 6e 0d 0a 5c 65 6e |r of scr|een..\en|
|00004340| 64 7b 74 61 62 62 69 6e | 67 7d 0d 0a 5c 65 6e 64 |d{tabbin|g}..\end|
|00004350| 7b 63 65 6e 74 65 72 7d | 0d 0a 0d 0a 4e 6f 74 65 |{center}|....Note|
|00004360| 20 74 68 61 74 20 74 68 | 65 20 58 20 61 6e 64 20 | that th|e X and |
|00004370| 59 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 61 72 |Y coordi|nates ar|
|00004380| 65 20 6e 6f 77 20 72 65 | 61 6c 20 6e 75 6d 62 65 |e now re|al numbe|
|00004390| 72 73 2c 0d 0a 73 6f 20 | 79 6f 75 20 61 72 65 20 |rs,..so |you are |
|000043a0| 61 6c 6c 6f 77 65 64 20 | 74 6f 20 63 61 6c 6c 20 |allowed |to call |
|000043b0| 7b 5c 74 74 20 53 45 54 | 2d 57 4f 52 4c 44 21 5c |{\tt SET|-WORLD!\|
|000043c0| 69 6e 64 65 78 7b 53 45 | 54 2d 57 4f 52 4c 44 40 |index{SE|T-WORLD@|
|000043d0| 7b 5c 74 74 20 53 45 54 | 2d 57 4f 52 4c 44 22 21 |{\tt SET|-WORLD"!|
|000043e0| 7d 7d 7d 20 77 69 74 68 | 20 70 61 72 61 6d 65 74 |}}} with| paramet|
|000043f0| 65 72 73 20 6c 69 6b 65 | 3a 0d 0a 5c 62 65 67 69 |ers like|:..\begi|
|00004400| 6e 7b 63 65 6e 74 65 72 | 7d 0d 0a 5c 62 65 67 69 |n{center|}..\begi|
|00004410| 6e 7b 74 61 62 62 69 6e | 67 7d 0d 0a 7b 5c 74 74 |n{tabbin|g}..{\tt|
|00004420| 20 28 73 65 74 2d 77 6f | 72 6c 64 21 20 60 28 28 | (set-wo|rld! `((|
|00004430| 2d 20 2c 70 69 5c 69 6e | 64 65 78 7b 70 69 7d 29 |- ,pi\in|dex{pi})|
|00004440| 20 2e 5c 20 31 29 20 60 | 28 2c 70 69 20 2e 5c 20 | .\ 1) `|(,pi .\ |
|00004450| 2d 31 29 29 7d 20 3b 20 | 69 64 65 61 6c 20 74 6f |-1))} ; |ideal to|
|00004460| 20 70 6c 6f 74 20 61 20 | 73 69 6e 65 5c 6c 64 6f | plot a |sine\ldo|
|00004470| 74 73 5c 69 6e 64 65 78 | 7b 70 6c 6f 74 7d 0d 0a |ts\index|{plot}..|
|00004480| 5c 65 6e 64 7b 74 61 62 | 62 69 6e 67 7d 0d 0a 5c |\end{tab|bing}..\|
|00004490| 65 6e 64 7b 63 65 6e 74 | 65 72 7d 0d 0a 0d 0a 4f |end{cent|er}....O|
|000044a0| 66 20 63 6f 75 72 73 65 | 2c 20 69 66 20 79 6f 75 |f course|, if you|
|000044b0| 20 6e 65 65 64 20 74 6f | 20 73 63 61 6e 20 65 76 | need to| scan ev|
|000044c0| 65 72 79 20 70 69 78 65 | 6c 2c 20 79 6f 75 20 63 |ery pixe|l, you c|
|000044d0| 61 6e 20 75 73 65 20 7b | 5c 74 74 20 47 45 54 2d |an use {|\tt GET-|
|000044e0| 4d 41 58 2d 58 59 7d 0d | 0a 5c 74 74 69 6e 64 65 |MAX-XY}.|.\ttinde|
|000044f0| 78 7b 47 45 54 2d 4d 41 | 58 2d 58 59 7d 20 74 6f |x{GET-MA|X-XY} to|
|00004500| 20 6f 62 74 61 69 6e 0d | 0a 74 68 65 20 61 63 74 | obtain.|.the act|
|00004510| 75 61 6c 20 72 65 73 6f | 6c 75 74 69 6f 6e 5c 69 |ual reso|lution\i|
|00004520| 6e 64 65 78 7b 72 65 73 | 6f 6c 75 74 69 6f 6e 7d |ndex{res|olution}|
|00004530| 20 6f 66 20 79 6f 75 72 | 20 73 63 72 65 65 6e 20 | of your| screen |
|00004540| 61 64 61 70 74 65 72 2e | 0d 0a 0d 0a 49 66 20 79 |adapter.|....If y|
|00004550| 6f 75 20 61 72 65 20 75 | 72 67 69 6e 67 20 74 6f |ou are u|rging to|
|00004560| 20 74 72 79 20 42 47 49 | 20 62 79 20 79 6f 75 72 | try BGI| by your|
|00004570| 73 65 6c 66 2c 20 73 6b | 69 70 20 74 6f 20 70 61 |self, sk|ip to pa|
|00004580| 72 74 7e 5c 72 65 66 7b | 72 65 66 65 72 65 6e 63 |rt~\ref{|referenc|
|00004590| 65 7d 2c 0d 0a 70 61 67 | 65 7e 5c 70 61 67 65 72 |e},..pag|e~\pager|
|000045a0| 65 66 7b 72 65 66 65 72 | 65 6e 63 65 7d 2e 0d 0a |ef{refer|ence}...|
|000045b0| 57 68 61 74 20 66 6f 6c | 6c 6f 77 73 20 69 73 20 |What fol|lows is |
|000045c0| 61 6e 20 65 78 74 65 6e | 73 69 6f 6e 20 74 6f 20 |an exten|sion to |
|000045d0| 74 68 65 20 42 47 49 20 | 73 74 61 6e 64 61 72 64 |the BGI |standard|
|000045e0| 2e 0d 0a 0d 0a 5c 73 65 | 63 74 69 6f 6e 7b 41 6e |.....\se|ction{An|
|000045f0| 64 20 66 75 72 74 68 65 | 72 5c 6c 64 6f 74 73 7d |d furthe|r\ldots}|
|00004600| 0d 0a 46 6f 72 20 74 79 | 70 65 20 63 68 65 63 6b |..For ty|pe check|
|00004610| 69 6e 67 20 6f 66 20 70 | 6f 69 6e 74 5c 69 6e 64 |ing of p|oint\ind|
|00004620| 65 78 7b 70 6f 69 6e 74 | 7d 20 70 61 72 61 6d 65 |ex{point|} parame|
|00004630| 74 65 72 73 2c 20 79 6f | 75 20 61 72 65 20 61 6c |ters, yo|u are al|
|00004640| 6c 6f 77 65 64 20 74 6f | 20 75 73 65 20 74 68 65 |lowed to| use the|
|00004650| 0d 0a 7b 5c 74 74 20 53 | 45 54 2d 50 4f 49 4e 54 |..{\tt S|ET-POINT|
|00004660| 3f 2d 21 5c 69 6e 64 65 | 78 7b 53 45 54 2d 50 4f |?-!\inde|x{SET-PO|
|00004670| 49 4e 54 40 7b 5c 74 74 | 20 53 45 54 2d 50 4f 49 |INT@{\tt| SET-POI|
|00004680| 4e 54 3f 2d 22 21 7d 7d | 7d 20 70 72 69 6d 69 74 |NT?-"!}}|} primit|
|00004690| 69 76 65 20 74 6f 20 63 | 68 61 6e 67 65 20 74 68 |ive to c|hange th|
|000046a0| 65 20 70 6f 69 6e 74 20 | 74 79 70 65 2e 0d 0a 46 |e point |type...F|
|000046b0| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 74 68 65 |or insta|nce, the|
|000046c0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 6f 64 65 20 | followi|ng code |
|000046d0| 77 6f 75 6c 64 20 61 6c | 6c 6f 77 20 70 6f 69 6e |would al|low poin|
|000046e0| 74 73 20 74 6f 20 62 65 | 0d 0a 61 20 70 61 69 72 |ts to be|..a pair|
|000046f0| 20 6f 66 20 72 65 61 6c | 20 28 74 68 69 73 20 69 | of real| (this i|
|00004700| 73 20 64 6f 6e 65 20 61 | 75 74 6f 6d 61 74 69 63 |s done a|utomatic|
|00004710| 61 6c 6c 79 20 77 68 65 | 6e 20 79 6f 75 20 75 73 |ally whe|n you us|
|00004720| 65 20 7b 5c 74 74 20 53 | 45 54 2d 57 4f 52 4c 44 |e {\tt S|ET-WORLD|
|00004730| 21 7d 29 2e 0d 0a 5c 62 | 65 67 69 6e 7b 63 65 6e |!})...\b|egin{cen|
|00004740| 74 65 72 7d 0d 0a 5c 62 | 65 67 69 6e 7b 74 61 62 |ter}..\b|egin{tab|
|00004750| 62 69 6e 67 7d 0d 0a 5c | 76 65 72 62 2b 28 64 65 |bing}..\|verb+(de|
|00004760| 66 69 6e 65 20 28 72 65 | 61 6c 2d 70 6f 69 6e 74 |fine (re|al-point|
|00004770| 20 70 6f 69 6e 74 29 2b | 09 5c 3d 20 3b 20 54 79 | point)+|.\= ; Ty|
|00004780| 70 65 2d 63 68 65 63 6b | 69 6e 67 20 66 6f 72 20 |pe-check|ing for |
|00004790| 70 6f 69 6e 74 73 5c 69 | 6e 64 65 78 7b 70 6f 69 |points\i|ndex{poi|
|000047a0| 6e 74 7d 20 5c 5c 0d 0a | 5c 76 65 72 62 2b 20 20 |nt} \\..|\verb+ |
|000047b0| 28 61 6e 64 20 28 70 61 | 69 72 3f 20 70 6f 69 6e |(and (pa|ir? poin|
|000047c0| 74 29 2b 20 5c 5c 0d 0a | 5c 76 65 72 62 2b 20 20 |t)+ \\..|\verb+ |
|000047d0| 20 20 20 20 20 28 6e 75 | 6d 62 65 72 3f 20 28 63 | (nu|mber? (c|
|000047e0| 61 72 20 70 6f 69 6e 74 | 29 29 2b 20 5c 5c 0d 0a |ar point|))+ \\..|
|000047f0| 5c 76 65 72 62 2b 20 20 | 20 20 20 20 20 28 6e 75 |\verb+ | (nu|
|00004800| 6d 62 65 72 3f 20 28 63 | 64 72 20 70 6f 69 6e 74 |mber? (c|dr point|
|00004810| 29 29 29 29 2b 20 5c 5c | 0d 0a 5c 76 65 72 62 2b |))))+ \\|..\verb+|
|00004820| 2b 20 5c 5c 0d 0a 5c 76 | 65 72 62 2b 28 73 65 74 |+ \\..\v|erb+(set|
|00004830| 2d 70 6f 69 6e 74 3f 2d | 21 20 72 65 61 6c 2d 70 |-point?-|! real-p|
|00004840| 6f 69 6e 74 29 2b 09 5c | 3e 20 3b 20 55 73 65 20 |oint)+.\|> ; Use |
|00004850| 74 68 65 20 72 65 61 6c | 2d 63 6f 6f 72 64 69 6e |the real|-coordin|
|00004860| 61 74 65 73 20 73 79 73 | 74 65 6d 0d 0a 5c 65 6e |ates sys|tem..\en|
|00004870| 64 7b 74 61 62 62 69 6e | 67 7d 0d 0a 5c 65 6e 64 |d{tabbin|g}..\end|
|00004880| 7b 63 65 6e 74 65 72 7d | 0d 0a 0d 0a 4e 6f 77 20 |{center}|....Now |
|00004890| 69 6d 61 67 69 6e 65 20 | 79 6f 75 20 77 61 6e 74 |imagine |you want|
|000048a0| 20 74 6f 20 64 72 61 77 | 20 61 20 62 61 72 20 63 | to draw| a bar c|
|000048b0| 68 61 72 74 20 75 73 69 | 6e 67 20 61 6e 20 65 78 |hart usi|ng an ex|
|000048c0| 70 6f 6e 65 6e 74 69 61 | 6c 5c 69 6e 64 65 78 7b |ponentia|l\index{|
|000048d0| 65 78 70 6f 6e 65 6e 74 | 69 61 6c 7d 20 73 63 61 |exponent|ial} sca|
|000048e0| 6c 65 2e 0d 0a 49 6e 73 | 74 65 61 64 20 6f 66 20 |le...Ins|tead of |
|000048f0| 61 64 64 69 6e 67 20 61 | 20 63 61 6c 6c 20 74 6f |adding a| call to|
|00004900| 20 74 68 65 20 4c 4f 47 | 20 66 75 6e 63 74 69 6f | the LOG| functio|
|00004910| 6e 20 62 65 66 6f 72 65 | 20 65 61 63 68 0d 0a 63 |n before| each..c|
|00004920| 61 6c 6c 20 74 6f 20 42 | 47 49 20 72 6f 75 74 69 |all to B|GI routi|
|00004930| 6e 65 2c 20 79 6f 75 20 | 63 61 6e 20 64 65 66 69 |ne, you |can defi|
|00004940| 6e 65 20 79 6f 75 72 20 | 6f 77 6e 20 63 6f 6f 72 |ne your |own coor|
|00004950| 64 69 6e 61 74 65 73 2d | 63 6f 6e 76 65 72 73 69 |dinates-|conversi|
|00004960| 6f 6e 0d 0a 66 75 6e 63 | 74 69 6f 6e 2e 20 43 61 |on..func|tion. Ca|
|00004970| 6c 6c 20 7b 5c 74 74 20 | 53 45 54 2d 43 4f 4f 52 |ll {\tt |SET-COOR|
|00004980| 44 49 4e 41 54 45 53 21 | 5c 69 6e 64 65 78 7b 53 |DINATES!|\index{S|
|00004990| 45 54 2d 43 4f 4f 52 44 | 49 4e 41 54 45 53 40 7b |ET-COORD|INATES@{|
|000049a0| 5c 74 74 20 53 45 54 2d | 43 4f 4f 52 44 49 4e 41 |\tt SET-|COORDINA|
|000049b0| 54 45 53 22 21 7d 7d 7d | 20 77 69 74 68 0d 0a 74 |TES"!}}}| with..t|
|000049c0| 68 72 65 65 20 66 75 6e | 63 74 69 6f 6e 73 20 61 |hree fun|ctions a|
|000049d0| 73 20 70 61 72 61 6d 65 | 74 65 72 73 2c 20 6f 6e |s parame|ters, on|
|000049e0| 65 20 65 78 74 72 61 63 | 74 69 6e 67 20 74 68 65 |e extrac|ting the|
|000049f0| 20 64 65 76 69 63 65 27 | 73 0d 0a 58 2d 63 6f 6f | device'|s..X-coo|
|00004a00| 72 64 69 6e 61 74 65 20 | 66 72 6f 6d 20 61 20 70 |rdinate |from a p|
|00004a10| 6f 69 6e 74 5c 69 6e 64 | 65 78 7b 70 6f 69 6e 74 |oint\ind|ex{point|
|00004a20| 7d 2c 20 6f 6e 65 20 65 | 78 74 72 61 63 74 69 6e |}, one e|xtractin|
|00004a30| 67 20 74 68 65 20 59 2d | 63 6f 6f 72 64 69 6e 61 |g the Y-|coordina|
|00004a40| 74 65 2c 0d 0a 61 6e 64 | 20 74 68 65 20 72 65 76 |te,..and| the rev|
|00004a50| 65 72 73 65 20 70 72 6f | 63 65 64 75 72 65 20 77 |erse pro|cedure w|
|00004a60| 68 69 63 68 20 72 65 74 | 75 72 6e 73 20 74 68 65 |hich ret|urns the|
|00004a70| 20 70 6f 69 6e 74 20 63 | 6f 72 72 65 73 70 6f 6e | point c|orrespon|
|00004a80| 64 69 6e 67 0d 0a 74 6f | 20 67 69 76 65 6e 20 64 |ding..to| given d|
|00004a90| 65 76 69 63 65 20 63 6f | 6f 72 64 69 6e 61 74 65 |evice co|ordinate|
|00004aa0| 73 3a 0d 0a 5c 62 65 67 | 69 6e 7b 63 65 6e 74 65 |s:..\beg|in{cente|
|00004ab0| 72 7d 0d 0a 5c 62 65 67 | 69 6e 7b 74 61 62 62 69 |r}..\beg|in{tabbi|
|00004ac0| 6e 67 7d 0d 0a 5c 76 65 | 72 62 2b 28 73 65 74 2d |ng}..\ve|rb+(set-|
|00004ad0| 63 6f 6f 72 64 69 6e 61 | 74 65 73 21 20 6d 79 2d |coordina|tes! my-|
|00004ae0| 78 20 6d 79 2d 79 20 72 | 65 76 65 72 73 65 2d 78 |x my-y r|everse-x|
|00004af0| 79 29 2b 20 5c 3d 20 5c | 6b 69 6c 6c 0d 0a 5c 76 |y)+ \= \|kill..\v|
|00004b00| 65 72 62 2b 28 64 65 66 | 69 6e 65 20 28 6d 79 2d |erb+(def|ine (my-|
|00004b10| 78 20 70 6f 69 6e 74 29 | 2b 09 5c 3e 20 3b 20 58 |x point)|+.\> ; X|
|00004b20| 2d 63 6f 6f 72 64 20 73 | 63 61 6c 65 64 20 66 72 |-coord s|caled fr|
|00004b30| 6f 6d 20 30 20 74 6f 20 | 31 20 5c 5c 0d 0a 5c 76 |om 0 to |1 \\..\v|
|00004b40| 65 72 62 2b 20 20 28 72 | 6f 75 6e 64 2b 09 09 09 |erb+ (r|ound+...|
|00004b50| 5c 3e 20 3b 20 52 65 74 | 75 72 6e 20 61 20 77 68 |\> ; Ret|urn a wh|
|00004b60| 6f 6c 65 20 6e 75 6d 62 | 65 72 20 5c 5c 0d 0a 5c |ole numb|er \\..\|
|00004b70| 76 65 72 62 2b 20 20 20 | 20 28 2a 20 28 63 61 72 |verb+ | (* (car|
|00004b80| 20 70 6f 69 6e 74 29 2b | 09 5c 3e 20 3b 20 4d 75 | point)+|.\> ; Mu|
|00004b90| 6c 74 69 70 6c 79 20 74 | 68 65 20 67 69 76 65 6e |ltiply t|he given|
|00004ba0| 20 58 2d 63 6f 6f 72 64 | 69 6e 61 74 65 5c 6c 64 | X-coord|inate\ld|
|00004bb0| 6f 74 73 5c 5c 0d 0a 5c | 76 65 72 62 2b 20 20 20 |ots\\..\|verb+ |
|00004bc0| 20 20 20 20 28 63 61 72 | 20 28 67 65 74 2d 6d 61 | (car| (get-ma|
|00004bd0| 78 2d 78 79 29 29 29 29 | 29 2b 20 5c 3e 20 3b 20 |x-xy))))|)+ \> ; |
|00004be0| 5c 6c 64 6f 74 73 20 62 | 79 20 74 68 65 20 6d 61 |\ldots b|y the ma|
|00004bf0| 78 69 6d 75 6d 20 58 2d | 63 6f 6f 72 64 69 6e 61 |ximum X-|coordina|
|00004c00| 74 65 5c 74 74 69 6e 64 | 65 78 7b 47 45 54 2d 4d |te\ttind|ex{GET-M|
|00004c10| 41 58 2d 58 59 7d 20 5c | 5c 0d 0a 5c 76 65 72 62 |AX-XY} \|\..\verb|
|00004c20| 2b 2b 20 5c 5c 0d 0a 5c | 76 65 72 62 2b 28 64 65 |++ \\..\|verb+(de|
|00004c30| 66 69 6e 65 20 28 6d 79 | 2d 79 20 70 6f 69 6e 74 |fine (my|-y point|
|00004c40| 29 2b 09 5c 3e 20 3b 20 | 59 2d 63 6f 6f 72 64 20 |)+.\> ; |Y-coord |
|00004c50| 6c 6f 67 3a 20 31 20 28 | 62 6f 74 74 6f 6d 29 20 |log: 1 (|bottom) |
|00004c60| 74 6f 20 31 30 30 30 20 | 5c 5c 0d 0a 5c 76 65 72 |to 1000 |\\..\ver|
|00004c70| 62 2b 20 20 28 72 6f 75 | 6e 64 2b 09 09 09 5c 3e |b+ (rou|nd+...\>|
|00004c80| 20 3b 20 52 65 74 75 72 | 6e 20 61 20 77 68 6f 6c | ; Retur|n a whol|
|00004c90| 65 20 6e 75 6d 62 65 72 | 20 20 5c 5c 0d 0a 5c 76 |e number| \\..\v|
|00004ca0| 65 72 62 2b 20 20 20 20 | 28 2a 20 28 2d 20 31 20 |erb+ |(* (- 1 |
|00004cb0| 28 6c 6f 67 20 28 63 64 | 72 20 70 6f 69 6e 74 29 |(log (cd|r point)|
|00004cc0| 20 31 30 30 30 29 29 2b | 20 5c 3e 20 3b 20 4c 6f | 1000))+| \> ; Lo|
|00004cd0| 67 20 6f 66 20 72 65 76 | 65 72 73 65 64 20 79 2d |g of rev|ersed y-|
|00004ce0| 63 6f 6f 72 64 69 6e 61 | 74 65 5c 6c 64 6f 74 73 |coordina|te\ldots|
|00004cf0| 5c 5c 0d 0a 5c 76 65 72 | 62 2b 20 20 20 20 20 20 |\\..\ver|b+ |
|00004d00| 20 28 63 64 72 20 28 67 | 65 74 2d 6d 61 78 2d 78 | (cdr (g|et-max-x|
|00004d10| 79 29 29 29 29 29 2b 20 | 5c 3e 20 3b 20 5c 6c 64 |y)))))+ |\> ; \ld|
|00004d20| 6f 74 73 20 74 69 6d 65 | 73 20 74 68 65 20 6d 61 |ots time|s the ma|
|00004d30| 78 69 6d 75 6d 20 79 2d | 63 6f 6f 72 64 69 6e 61 |ximum y-|coordina|
|00004d40| 74 65 20 5c 5c 0d 0a 5c | 76 65 72 62 2b 2b 20 5c |te \\..\|verb++ \|
|00004d50| 5c 0d 0a 5c 76 65 72 62 | 2b 28 64 65 66 69 6e 65 |\..\verb|+(define|
|00004d60| 20 28 72 65 76 65 72 73 | 65 2d 78 79 20 78 79 29 | (revers|e-xy xy)|
|00004d70| 2b 09 5c 3e 20 3b 20 52 | 65 76 65 72 73 65 20 70 |+.\> ; R|everse p|
|00004d80| 72 6f 63 65 64 75 72 65 | 2c 20 75 73 65 64 20 77 |rocedure|, used w|
|00004d90| 68 65 6e 20 42 47 49 20 | 5c 5c 0d 0a 5c 76 65 72 |hen BGI |\\..\ver|
|00004da0| 62 2b 20 20 28 6c 65 74 | 20 28 28 6d 61 78 2d 78 |b+ (let| ((max-x|
|00004db0| 79 20 28 67 65 74 2d 6d | 61 78 2d 78 79 29 29 29 |y (get-m|ax-xy)))|
|00004dc0| 2b 20 5c 3e 20 3b 20 77 | 61 6e 74 73 20 74 6f 20 |+ \> ; w|ants to |
|00004dd0| 72 65 74 75 72 6e 20 61 | 20 63 6f 6f 72 64 69 6e |return a| coordin|
|00004de0| 61 74 65 20 5c 5c 0d 0a | 5c 76 65 72 62 2b 20 20 |ate \\..|\verb+ |
|00004df0| 20 20 28 63 6f 6e 73 2b | 09 09 5c 3e 20 3b 20 52 | (cons+|..\> ; R|
|00004e00| 65 74 75 72 6e 20 61 20 | 70 6f 69 6e 74 20 28 61 |eturn a |point (a|
|00004e10| 20 70 61 69 72 29 20 5c | 5c 0d 0a 5c 76 65 72 62 | pair) \|\..\verb|
|00004e20| 2b 20 20 20 20 20 20 28 | 2f 20 28 63 61 72 20 78 |+ (|/ (car x|
|00004e30| 79 29 20 28 63 61 72 20 | 6d 61 78 2d 78 79 29 29 |y) (car |max-xy))|
|00004e40| 2b 20 5c 5c 0d 0a 5c 76 | 65 72 62 2b 20 20 20 20 |+ \\..\v|erb+ |
|00004e50| 20 20 28 65 78 70 74 20 | 31 30 30 30 20 28 2d 20 | (expt |1000 (- |
|00004e60| 31 20 28 2f 20 28 63 64 | 72 20 78 79 29 20 28 63 |1 (/ (cd|r xy) (c|
|00004e70| 64 72 20 6d 61 78 2d 78 | 79 29 29 29 29 29 29 29 |dr max-x|y)))))))|
|00004e80| 2b 20 5c 5c 0d 0a 5c 76 | 65 72 62 2b 2b 20 5c 5c |+ \\..\v|erb++ \\|
|00004e90| 0d 0a 5c 76 65 72 62 2b | 28 73 65 74 2d 63 6f 6f |..\verb+|(set-coo|
|00004ea0| 72 64 69 6e 61 74 65 73 | 21 20 6d 79 2d 78 20 6d |rdinates|! my-x m|
|00004eb0| 79 2d 79 20 72 65 76 65 | 72 73 65 2d 78 79 29 2b |y-y reve|rse-xy)+|
|00004ec0| 20 5c 3e 20 3b 20 55 73 | 65 20 74 68 65 20 76 65 | \> ; Us|e the ve|
|00004ed0| 72 74 69 63 61 6c 2d 6c | 6f 67 61 72 69 74 68 6d |rtical-l|ogarithm|
|00004ee0| 69 63 20 73 79 73 74 65 | 6d 0d 0a 5c 65 6e 64 7b |ic syste|m..\end{|
|00004ef0| 74 61 62 62 69 6e 67 7d | 0d 0a 5c 65 6e 64 7b 63 |tabbing}|..\end{c|
|00004f00| 65 6e 74 65 72 7d 0d 0a | 0d 0a 44 6f 6e 27 74 20 |enter}..|..Don't |
|00004f10| 66 6f 72 67 65 74 20 74 | 6f 20 63 61 6c 6c 20 7b |forget t|o call {|
|00004f20| 5c 74 74 20 53 45 54 2d | 50 4f 49 4e 54 3f 2d 21 |\tt SET-|POINT?-!|
|00004f30| 7d 2c 20 62 65 63 61 75 | 73 65 20 7b 5c 74 74 20 |}, becau|se {\tt |
|00004f40| 53 45 54 2d 43 4f 4f 52 | 44 49 4e 41 54 45 53 21 |SET-COOR|DINATES!|
|00004f50| 7d 0d 0a 77 6f 6e 27 74 | 20 63 61 6c 6c 20 69 74 |}..won't| call it|
|00004f60| 20 66 6f 72 20 79 6f 75 | 20 28 74 68 65 20 65 78 | for you| (the ex|
|00004f70| 61 6d 70 6c 65 20 61 62 | 6f 76 65 20 61 73 73 75 |ample ab|ove assu|
|00004f80| 6d 65 73 20 79 6f 75 27 | 76 65 20 61 6c 72 65 61 |mes you'|ve alrea|
|00004f90| 64 79 20 74 79 70 65 64 | 20 69 6e 0d 0a 74 68 65 |dy typed| in..the|
|00004fa0| 20 7b 5c 74 74 20 53 45 | 54 2d 50 4f 49 4e 54 3f | {\tt SE|T-POINT?|
|00004fb0| 2d 21 7d 20 65 78 61 6d | 70 6c 65 29 2e 0d 0a 0d |-!} exam|ple)....|
|00004fc0| 0a 4e 6f 74 65 20 74 68 | 61 74 20 75 73 69 6e 67 |.Note th|at using|
|00004fd0| 20 74 68 69 73 20 63 6f | 6f 72 64 69 6e 61 74 65 | this co|ordinate|
|00004fe0| 20 73 79 73 74 65 6d 2c | 20 74 68 65 20 73 61 6d | system,| the sam|
|00004ff0| 65 20 63 61 6c 6c 20 74 | 6f 20 61 20 66 75 6e 63 |e call t|o a func|
|00005000| 74 69 6f 6e 20 73 75 63 | 68 0d 0a 61 73 20 4c 49 |tion suc|h..as LI|
|00005010| 4e 45 2d 52 45 4c 5c 74 | 74 69 6e 64 65 78 7b 4c |NE-REL\t|tindex{L|
|00005020| 49 4e 45 2d 52 45 4c 7d | 20 63 61 6e 20 68 61 76 |INE-REL}| can hav|
|00005030| 65 20 64 69 66 66 65 72 | 65 6e 74 20 72 65 73 75 |e differ|ent resu|
|00005040| 6c 74 73 2c 20 64 65 70 | 65 6e 64 69 6e 67 20 6f |lts, dep|ending o|
|00005050| 6e 20 77 68 65 72 65 20 | 74 68 65 20 70 65 6e 5c |n where |the pen\|
|00005060| 69 6e 64 65 78 7b 70 65 | 6e 7d 20 69 73 3a 0d 0a |index{pe|n} is:..|
|00005070| 5c 62 65 67 69 6e 7b 63 | 65 6e 74 65 72 7d 0d 0a |\begin{c|enter}..|
|00005080| 5c 62 65 67 69 6e 7b 74 | 61 62 62 69 6e 67 7d 0d |\begin{t|abbing}.|
|00005090| 0a 7b 5c 74 74 20 28 6d | 6f 76 65 2d 74 6f 20 5c |.{\tt (m|ove-to \|
|000050a0| 53 79 7b 28 30 2e 35 20 | 2e 5c 20 31 30 30 29 7d |Sy{(0.5 |.\ 100)}|
|000050b0| 29 7d 20 5c 3d 20 5c 6b | 69 6c 6c 0d 0a 7b 5c 74 |)} \= \k|ill..{\t|
|000050c0| 74 20 28 6d 6f 76 65 2d | 74 6f 20 5c 53 79 7b 28 |t (move-|to \Sy{(|
|000050d0| 30 2e 35 20 2e 5c 20 31 | 29 7d 29 7d 20 5c 5c 0d |0.5 .\ 1|)})} \\.|
|000050e0| 0a 7b 5c 74 74 20 28 6c | 69 6e 65 2d 72 65 6c 20 |.{\tt (l|ine-rel |
|000050f0| 5c 53 79 7b 28 30 20 2e | 5c 20 31 30 29 7d 29 7d |\Sy{(0 .|\ 10)})}|
|00005100| 20 5c 3e 20 3b 20 6c 65 | 6e 67 74 68 20 3d 20 31 | \> ; le|ngth = 1|
|00005110| 2f 33 20 6f 66 20 74 6f | 74 61 6c 20 68 65 69 67 |/3 of to|tal heig|
|00005120| 68 74 20 5c 5c 0d 0a 5c | 76 65 72 62 2b 2b 20 5c |ht \\..\|verb++ \|
|00005130| 5c 0d 0a 7b 5c 74 74 20 | 28 6d 6f 76 65 2d 74 6f |\..{\tt |(move-to|
|00005140| 20 5c 53 79 7b 28 30 2e | 35 20 2e 5c 20 31 30 30 | \Sy{(0.|5 .\ 100|
|00005150| 29 7d 29 7d 20 5c 3e 20 | 3b 20 67 6f 65 73 20 75 |)})} \> |; goes u|
|00005160| 70 20 69 6e 74 6f 20 6c | 6f 67 20 73 63 61 6c 65 |p into l|og scale|
|00005170| 5c 6c 64 6f 74 73 5c 74 | 74 69 6e 64 65 78 7b 4d |\ldots\t|tindex{M|
|00005180| 4f 56 45 2d 54 4f 7d 5c | 5c 0d 0a 7b 5c 74 74 20 |OVE-TO}\|\..{\tt |
|00005190| 28 6c 69 6e 65 2d 72 65 | 6c 20 5c 53 79 7b 28 30 |(line-re|l \Sy{(0|
|000051a0| 20 2e 5c 20 31 30 29 7d | 29 7d 20 5c 3e 20 3b 20 | .\ 10)}|)} \> ; |
|000051b0| 6c 65 6e 67 74 68 20 3d | 20 31 2f 37 32 20 6f 66 |length =| 1/72 of|
|000051c0| 20 74 6f 74 61 6c 20 68 | 65 69 67 68 74 0d 0a 5c | total h|eight..\|
|000051d0| 65 6e 64 7b 74 61 62 62 | 69 6e 67 7d 0d 0a 5c 65 |end{tabb|ing}..\e|
|000051e0| 6e 64 7b 63 65 6e 74 65 | 72 7d 0d 0a 0d 0a 4f 66 |nd{cente|r}....Of|
|000051f0| 20 63 6f 75 72 73 65 2c | 20 79 6f 75 20 64 6f 6e | course,| you don|
|00005200| 27 74 20 6e 65 65 64 20 | 74 6f 20 61 73 73 75 6d |'t need |to assum|
|00005210| 65 20 74 68 61 74 20 61 | 20 70 6f 69 6e 74 5c 69 |e that a| point\i|
|00005220| 6e 64 65 78 7b 70 6f 69 | 6e 74 7d 20 69 73 20 61 |ndex{poi|nt} is a|
|00005230| 20 70 61 69 72 3b 20 77 | 68 79 20 6e 6f 74 20 61 | pair; w|hy not a|
|00005240| 20 6c 69 73 74 0d 0a 6f | 66 20 6e 75 6d 62 65 72 | list..o|f number|
|00005250| 73 2c 20 69 6e 20 61 20 | 74 68 72 65 65 2d 20 6f |s, in a |three- o|
|00005260| 72 20 66 6f 75 72 2d 64 | 69 6d 65 6e 73 69 6f 6e |r four-d|imension|
|00005270| 61 6c 20 73 70 61 63 65 | 3f 20 4a 75 73 74 20 77 |al space|? Just w|
|00005280| 72 69 74 65 20 74 68 65 | 20 66 75 6e 63 74 69 6f |rite the| functio|
|00005290| 6e 73 0d 0a 74 68 61 74 | 20 65 78 74 72 61 63 74 |ns..that| extract|
|000052a0| 20 61 20 70 72 6f 6a 65 | 63 74 69 6f 6e 5c 69 6e | a proje|ction\in|
|000052b0| 64 65 78 7b 70 72 6f 6a | 65 63 74 69 6f 6e 7d 20 |dex{proj|ection} |
|000052c0| 6f 75 74 20 6f 66 20 61 | 20 76 65 63 74 6f 72 2c |out of a| vector,|
|000052d0| 20 61 6e 64 20 79 6f 75 | 27 72 65 20 64 6f 6e 65 | and you|'re done|
|000052e0| 21 0d 0a 0d 0a 44 6f 20 | 79 6f 75 20 6c 69 6b 65 |!....Do |you like|
|000052f0| 20 45 75 63 6c 69 64 5c | 69 6e 64 65 78 7b 45 75 | Euclid\|index{Eu|
|00005300| 63 6c 69 64 7d 3f 20 49 | 66 20 79 6f 75 20 64 6f |clid}? I|f you do|
|00005310| 6e 27 74 2c 20 79 6f 75 | 20 63 61 6e 20 61 6c 73 |n't, you| can als|
|00005320| 6f 20 64 65 66 69 6e 65 | 0d 0a 68 6f 77 20 74 6f |o define|..how to|
|00005330| 20 63 61 6c 63 75 6c 61 | 74 65 20 64 69 73 74 61 | calcula|te dista|
|00005340| 6e 63 65 73 5c 69 6e 64 | 65 78 7b 64 69 73 74 61 |nces\ind|ex{dista|
|00005350| 6e 63 65 7d 2c 20 61 6c | 6d 6f 73 74 20 74 68 65 |nce}, al|most the|
|00005360| 20 73 61 6d 65 20 77 61 | 79 20 79 6f 75 0d 0a 64 | same wa|y you..d|
|00005370| 65 66 69 6e 65 64 20 74 | 68 65 20 63 6f 6f 72 64 |efined t|he coord|
|00005380| 69 6e 61 74 65 73 2e 20 | 7b 5c 74 74 20 53 45 54 |inates. |{\tt SET|
|00005390| 2d 44 49 53 54 41 4e 43 | 45 53 21 5c 69 6e 64 65 |-DISTANC|ES!\inde|
|000053a0| 78 7b 53 45 54 2d 44 49 | 53 54 41 4e 43 45 53 40 |x{SET-DI|STANCES@|
|000053b0| 7b 5c 74 74 20 53 45 54 | 2d 44 49 53 54 41 4e 43 |{\tt SET|-DISTANC|
|000053c0| 45 53 22 21 7d 7d 7d 20 | 61 63 63 65 70 74 73 0d |ES"!}}} |accepts.|
|000053d0| 0a 74 68 72 65 65 20 70 | 61 72 61 6d 65 74 65 72 |.three p|arameter|
|000053e0| 73 3a 20 74 68 65 20 58 | 20 64 69 73 74 61 6e 63 |s: the X| distanc|
|000053f0| 65 20 65 78 74 72 61 63 | 74 6f 72 2c 0d 0a 74 68 |e extrac|tor,..th|
|00005400| 65 20 59 20 64 69 73 74 | 61 6e 63 65 20 65 78 74 |e Y dist|ance ext|
|00005410| 72 61 63 74 6f 72 20 61 | 6e 64 20 74 68 65 20 75 |ractor a|nd the u|
|00005420| 6e 61 72 79 20 64 69 73 | 74 61 6e 63 65 5c 69 6e |nary dis|tance\in|
|00005430| 64 65 78 7b 64 69 73 74 | 61 6e 63 65 21 75 6e 61 |dex{dist|ance!una|
|00005440| 72 79 7d 20 65 78 74 72 | 61 63 74 6f 72 2e 0d 0a |ry} extr|actor...|
|00005450| 54 68 65 73 65 20 74 68 | 72 65 65 20 66 75 6e 63 |These th|ree func|
|00005460| 74 69 6f 6e 73 20 72 65 | 63 65 69 76 65 20 74 68 |tions re|ceive th|
|00005470| 65 20 70 6f 69 6e 74 5c | 69 6e 64 65 78 7b 70 6f |e point\|index{po|
|00005480| 69 6e 74 7d 20 66 72 6f | 6d 20 77 68 69 63 68 20 |int} fro|m which |
|00005490| 74 68 65 20 64 69 73 74 | 61 6e 63 65 0d 0a 69 73 |the dist|ance..is|
|000054a0| 20 74 6f 20 62 65 20 63 | 61 6c 63 75 6c 61 74 65 | to be c|alculate|
|000054b0| 64 20 61 6e 64 20 74 68 | 65 20 75 73 65 72 2d 64 |d and th|e user-d|
|000054c0| 65 73 69 72 65 64 20 64 | 69 73 74 61 6e 63 65 2e |esired d|istance.|
|000054d0| 0d 0a 58 20 5c 26 20 59 | 20 64 69 73 74 61 6e 63 |..X \& Y| distanc|
|000054e0| 65 73 20 61 72 65 20 75 | 73 65 64 20 66 6f 72 20 |es are u|sed for |
|000054f0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 66 75 |the foll|owing fu|
|00005500| 6e 63 74 69 6f 6e 73 3a | 0d 0a 7b 5c 74 74 20 4d |nctions:|..{\tt M|
|00005510| 4f 56 45 2d 52 45 4c 5c | 74 74 69 6e 64 65 78 7b |OVE-REL\|ttindex{|
|00005520| 4d 4f 56 45 2d 52 45 4c | 7d 7d 2c 20 7b 5c 74 74 |MOVE-REL|}}, {\tt|
|00005530| 20 4c 49 4e 45 2d 52 45 | 4c 5c 74 74 69 6e 64 65 | LINE-RE|L\ttinde|
|00005540| 78 7b 4c 49 4e 45 2d 52 | 45 4c 7d 7d 2c 20 7b 5c |x{LINE-R|EL}}, {\|
|00005550| 74 74 20 45 4c 4c 49 50 | 53 45 5c 74 74 69 6e 64 |tt ELLIP|SE\ttind|
|00005560| 65 78 7b 45 4c 4c 49 50 | 53 45 7d 7d 2c 20 7b 5c |ex{ELLIP|SE}}, {\|
|00005570| 74 74 20 46 49 4c 4c 2d | 45 4c 4c 49 50 53 45 5c |tt FILL-|ELLIPSE\|
|00005580| 74 74 69 6e 64 65 78 7b | 46 49 4c 4c 2d 45 4c 4c |ttindex{|FILL-ELL|
|00005590| 49 50 53 45 7d 7d 0d 0a | 61 6e 64 20 7b 5c 74 74 |IPSE}}..|and {\tt|
|000055a0| 20 53 45 43 54 4f 52 5c | 74 74 69 6e 64 65 78 7b | SECTOR\|ttindex{|
|000055b0| 53 45 43 54 4f 52 7d 7d | 2c 20 77 68 69 6c 65 20 |SECTOR}}|, while |
|000055c0| 74 68 65 20 75 6e 61 72 | 79 20 64 69 73 74 61 6e |the unar|y distan|
|000055d0| 63 65 20 69 73 20 75 73 | 65 64 20 62 79 0d 0a 7b |ce is us|ed by..{|
|000055e0| 5c 74 74 20 41 52 43 5c | 74 74 69 6e 64 65 78 7b |\tt ARC\|ttindex{|
|000055f0| 41 52 43 7d 7d 2c 20 7b | 5c 74 74 20 43 49 52 43 |ARC}}, {|\tt CIRC|
|00005600| 4c 45 5c 74 74 69 6e 64 | 65 78 7b 43 49 52 43 4c |LE\ttind|ex{CIRCL|
|00005610| 45 7d 7d 20 61 6e 64 20 | 7b 5c 74 74 20 50 49 45 |E}} and |{\tt PIE|
|00005620| 2d 53 4c 49 43 45 5c 74 | 74 69 6e 64 65 78 7b 50 |-SLICE\t|tindex{P|
|00005630| 49 45 2d 53 4c 49 43 45 | 7d 7d 0d 0a 28 60 60 75 |IE-SLICE|}}..(``u|
|00005640| 6e 61 72 79 27 27 20 6d | 65 61 6e 73 20 74 68 61 |nary'' m|eans tha|
|00005650| 74 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 72 |t the fu|nction r|
|00005660| 65 63 65 69 76 65 73 20 | 64 69 73 74 61 6e 63 65 |eceives |distance|
|00005670| 73 20 61 73 20 61 20 6e | 75 6d 62 65 72 0d 0a 61 |s as a n|umber..a|
|00005680| 6e 64 20 72 65 74 75 72 | 6e 73 20 61 20 6e 75 6d |nd retur|ns a num|
|00005690| 62 65 72 3b 20 77 68 69 | 6c 65 20 58 20 61 6e 64 |ber; whi|le X and|
|000056a0| 20 59 20 64 69 73 74 61 | 6e 63 65 73 20 72 65 63 | Y dista|nces rec|
|000056b0| 65 69 76 65 20 61 20 66 | 69 63 74 69 76 65 20 70 |eive a f|ictive p|
|000056c0| 6f 69 6e 74 5c 69 6e 64 | 65 78 7b 70 6f 69 6e 74 |oint\ind|ex{point|
|000056d0| 7d 0d 0a 77 68 69 63 68 | 20 69 73 20 74 68 65 20 |}..which| is the |
|000056e0| 64 69 73 70 6c 61 63 65 | 6d 65 6e 74 5c 69 6e 64 |displace|ment\ind|
|000056f0| 65 78 7b 64 69 73 70 6c | 61 63 65 6d 65 6e 74 7d |ex{displ|acement}|
|00005700| 20 62 65 74 77 65 65 6e | 20 74 77 6f 20 70 6f 69 | between| two poi|
|00005710| 6e 74 73 5c 69 6e 64 65 | 78 7b 70 6f 69 6e 74 7d |nts\inde|x{point}|
|00005720| 29 2e 0d 0a 0d 0a 41 6c | 6c 20 74 68 65 73 65 20 |).....Al|l these |
|00005730| 63 6f 6f 72 64 69 6e 61 | 74 65 2d 6d 61 6e 69 70 |coordina|te-manip|
|00005740| 75 6c 61 74 69 6f 6e 20 | 70 72 69 6d 69 74 69 76 |ulation |primitiv|
|00005750| 65 73 20 72 65 74 75 72 | 6e 0d 0a 74 68 65 20 70 |es retur|n..the p|
|00005760| 72 65 76 69 6f 75 73 20 | 76 65 72 73 69 6f 6e 20 |revious |version |
|00005770| 6f 66 20 61 6c 6c 20 74 | 68 65 20 70 72 6f 63 65 |of all t|he proce|
|00005780| 64 75 72 65 73 20 74 68 | 65 79 20 63 68 61 6e 67 |dures th|ey chang|
|00005790| 65 2c 0d 0a 73 6f 20 79 | 6f 75 20 63 61 6e 20 72 |e,..so y|ou can r|
|000057a0| 65 73 74 6f 72 65 20 74 | 68 65 6d 20 6c 61 74 65 |estore t|hem late|
|000057b0| 72 2e 0d 0a 49 6e 20 70 | 61 72 74 69 63 75 6c 61 |r...In p|articula|
|000057c0| 72 2c 20 53 45 54 2d 57 | 4f 52 4c 44 21 20 72 65 |r, SET-W|ORLD! re|
|000057d0| 74 75 72 6e 73 20 61 6c | 6c 20 6f 66 20 73 65 76 |turns al|l of sev|
|000057e0| 65 6e 20 70 72 6f 63 65 | 64 75 72 65 73 2c 0d 0a |en proce|dures,..|
|000057f0| 69 6e 20 74 68 65 20 6f | 72 64 65 72 20 7b 5c 74 |in the o|rder {\t|
|00005800| 74 20 50 4f 49 4e 54 3f | 5c 74 74 69 6e 64 65 78 |t POINT?|\ttindex|
|00005810| 7b 50 4f 49 4e 54 3f 7d | 2c 20 58 2c 20 59 2c 20 |{POINT?}|, X, Y, |
|00005820| 52 45 56 45 52 53 45 2d | 58 59 2c 20 58 2d 44 49 |REVERSE-|XY, X-DI|
|00005830| 53 54 2c 20 59 2d 44 49 | 53 54 2c 20 7b 5c 72 6d |ST, Y-DI|ST, {\rm|
|00005840| 20 61 6e 64 7d 20 55 4e | 41 52 59 2d 44 49 53 54 | and} UN|ARY-DIST|
|00005850| 7d 3b 0d 0a 61 6e 64 20 | 61 6c 6c 20 63 61 6e 20 |};..and |all can |
|00005860| 62 65 20 72 65 73 74 6f | 72 65 64 20 69 6e 20 6f |be resto|red in o|
|00005870| 6e 65 20 73 69 6e 67 6c | 65 20 63 61 6c 6c 20 74 |ne singl|e call t|
|00005880| 6f 20 7b 5c 74 74 20 52 | 45 53 54 4f 52 45 2d 57 |o {\tt R|ESTORE-W|
|00005890| 4f 52 4c 44 21 5c 69 6e | 64 65 78 7b 52 45 53 54 |ORLD!\in|dex{REST|
|000058a0| 4f 52 45 2d 57 4f 52 4c | 44 40 7b 5c 74 74 20 52 |ORE-WORL|D@{\tt R|
|000058b0| 45 53 54 4f 52 45 2d 57 | 4f 52 4c 44 22 21 7d 7d |ESTORE-W|ORLD"!}}|
|000058c0| 7d 3a 0d 0a 5c 62 65 67 | 69 6e 7b 63 65 6e 74 65 |}:..\beg|in{cente|
|000058d0| 72 7d 0d 0a 5c 62 65 67 | 69 6e 7b 74 61 62 62 69 |r}..\beg|in{tabbi|
|000058e0| 6e 67 7d 0d 0a 7b 5c 74 | 74 20 28 6c 65 74 20 28 |ng}..{\t|t (let (|
|000058f0| 28 6f 6c 64 2d 73 79 73 | 20 28 73 65 74 2d 77 6f |(old-sys| (set-wo|
|00005900| 72 6c 64 21 20 5c 53 79 | 7b 28 30 20 2e 5c 20 30 |rld! \Sy|{(0 .\ 0|
|00005910| 29 7d 20 5c 53 79 7b 28 | 31 20 2e 5c 20 31 29 7d |)} \Sy{(|1 .\ 1)}|
|00005920| 29 29 29 7d 20 3b 20 63 | 68 61 6e 67 65 20 61 6e |)))} ; c|hange an|
|00005930| 64 20 72 65 6d 65 6d 62 | 65 72 20 5c 5c 0d 0a 5c |d rememb|er \\..\|
|00005940| 76 65 72 62 2b 20 20 2e | 2e 2e 2b 20 5c 5c 0d 0a |verb+ .|..+ \\..|
|00005950| 5c 76 65 72 62 2b 20 20 | 28 72 65 73 74 6f 72 65 |\verb+ |(restore|
|00005960| 2d 77 6f 72 6c 64 21 20 | 6f 6c 64 2d 73 79 73 29 |-world! |old-sys)|
|00005970| 29 2b 0d 0a 5c 65 6e 64 | 7b 74 61 62 62 69 6e 67 |)+..\end|{tabbing|
|00005980| 7d 0d 0a 5c 65 6e 64 7b | 63 65 6e 74 65 72 7d 0d |}..\end{|center}.|
|00005990| 0a 0d 0a 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |...If yo|u want t|
|000059a0| 6f 20 72 65 73 74 6f 72 | 65 20 70 72 6f 63 65 64 |o restor|e proced|
|000059b0| 75 72 65 73 20 62 79 20 | 79 6f 75 72 73 65 6c 66 |ures by |yourself|
|000059c0| 2c 20 6e 6f 74 65 20 74 | 68 65 20 66 6f 6c 6c 6f |, note t|he follo|
|000059d0| 77 69 6e 67 20 65 78 61 | 6d 70 6c 65 3a 0d 0a 5c |wing exa|mple:..\|
|000059e0| 62 65 67 69 6e 7b 63 65 | 6e 74 65 72 7d 0d 0a 5c |begin{ce|nter}..\|
|000059f0| 62 65 67 69 6e 7b 74 61 | 62 62 69 6e 67 7d 0d 0a |begin{ta|bbing}..|
|00005a00| 7b 5c 74 74 20 28 6c 65 | 74 2a 20 28 28 6f 6c 64 |{\tt (le|t* ((old|
|00005a10| 2d 73 79 73 20 28 73 65 | 74 2d 77 6f 72 6c 64 21 |-sys (se|t-world!|
|00005a20| 20 5c 53 79 7b 28 30 20 | 2e 5c 20 30 29 7d 20 5c | \Sy{(0 |.\ 0)} \|
|00005a30| 53 79 7b 28 31 20 2e 5c | 20 31 29 7d 29 29 7d 09 |Sy{(1 .\| 1)}))}.|
|00005a40| 3b 20 63 68 61 6e 67 65 | 20 61 6e 64 20 72 65 6d |; change| and rem|
|00005a50| 65 6d 62 65 72 20 5c 5c | 0d 0a 5c 76 65 72 62 2b |ember \\|..\verb+|
|00005a60| 09 28 6f 6c 64 2d 70 6f | 69 6e 74 3f 20 28 63 61 |.(old-po|int? (ca|
|00005a70| 72 20 6f 6c 64 2d 73 79 | 73 29 29 2b 20 5c 5c 0d |r old-sy|s))+ \\.|
|00005a80| 0a 5c 76 65 72 62 2b 09 | 28 6f 6c 64 2d 63 6f 6f |.\verb+.|(old-coo|
|00005a90| 72 64 20 28 63 64 72 20 | 6f 6c 64 2d 73 79 73 29 |rd (cdr |old-sys)|
|00005aa0| 29 2b 20 5c 5c 0d 0a 5c | 76 65 72 62 2b 09 28 6f |)+ \\..\|verb+.(o|
|00005ab0| 6c 64 2d 64 69 73 74 20 | 28 63 64 64 64 72 20 6f |ld-dist |(cdddr o|
|00005ac0| 6c 64 2d 63 6f 6f 72 64 | 29 29 29 2b 20 5c 5c 0d |ld-coord|)))+ \\.|
|00005ad0| 0a 5c 76 65 72 62 2b 20 | 20 2e 2e 2e 2b 20 5c 5c |.\verb+ | ...+ \\|
|00005ae0| 0d 0a 5c 76 65 72 62 2b | 20 20 28 73 65 74 2d 70 |..\verb+| (set-p|
|00005af0| 6f 69 6e 74 3f 2d 21 20 | 20 20 20 20 6f 6c 64 2d |oint?-! | old-|
|00005b00| 70 6f 69 6e 74 3f 29 2b | 20 5c 5c 0d 0a 5c 76 65 |point?)+| \\..\ve|
|00005b10| 72 62 2b 20 20 28 73 65 | 74 2d 63 6f 6f 72 64 69 |rb+ (se|t-coordi|
|00005b20| 6e 61 74 65 73 21 20 28 | 63 61 72 20 6f 6c 64 2d |nates! (|car old-|
|00005b30| 63 6f 6f 72 64 29 20 28 | 63 61 64 72 20 6f 6c 64 |coord) (|cadr old|
|00005b40| 2d 63 6f 6f 72 64 29 20 | 28 63 61 64 64 72 20 6f |-coord) |(caddr o|
|00005b50| 6c 64 2d 63 6f 6f 72 64 | 29 29 2b 20 5c 5c 0d 0a |ld-coord|))+ \\..|
|00005b60| 5c 76 65 72 62 2b 20 20 | 28 73 65 74 2d 64 69 73 |\verb+ |(set-dis|
|00005b70| 74 61 6e 63 65 73 21 20 | 20 20 28 63 61 72 20 6f |tances! | (car o|
|00005b80| 6c 64 2d 64 69 73 74 29 | 20 20 28 63 61 64 72 20 |ld-dist)| (cadr |
|00005b90| 6f 6c 64 2d 64 69 73 74 | 29 20 20 28 63 61 64 64 |old-dist|) (cadd|
|00005ba0| 72 20 6f 6c 64 2d 64 69 | 73 74 29 29 2b 20 5c 5c |r old-di|st))+ \\|
|00005bb0| 0d 0a 5c 65 6e 64 7b 74 | 61 62 62 69 6e 67 7d 0d |..\end{t|abbing}.|
|00005bc0| 0a 5c 65 6e 64 7b 63 65 | 6e 74 65 72 7d 0d 0a 0d |.\end{ce|nter}...|
|00005bd0| 0a 41 6c 77 61 79 73 20 | 72 65 73 74 6f 72 65 20 |.Always |restore |
|00005be0| 70 72 6f 63 65 64 75 72 | 65 73 20 69 6e 20 74 68 |procedur|es in th|
|00005bf0| 69 73 20 6f 72 64 65 72 | 2c 20 73 69 6e 63 65 20 |is order|, since |
|00005c00| 7b 5c 74 74 20 53 45 54 | 2d 43 4f 4f 52 44 49 4e |{\tt SET|-COORDIN|
|00005c10| 41 54 45 53 21 7d 20 6d | 6f 64 69 66 69 65 73 0d |ATES!} m|odifies.|
|00005c20| 0a 74 68 65 20 64 69 73 | 74 61 6e 63 65 2d 66 75 |.the dis|tance-fu|
|00005c30| 6e 63 74 69 6f 6e 73 20 | 74 6f 20 61 64 61 70 74 |nctions |to adapt|
|00005c40| 20 74 68 65 6d 20 74 6f | 20 74 68 65 20 6e 65 77 | them to| the new|
|00005c50| 20 67 69 76 65 6e 20 73 | 79 73 74 65 6d 2e 0d 0a | given s|ystem...|
|00005c60| 0d 0a 5c 73 65 63 74 69 | 6f 6e 7b 54 68 65 20 50 |..\secti|on{The P|
|00005c70| 53 20 61 6e 64 20 53 50 | 59 5c 69 6e 64 65 78 7b |S and SP|Y\index{|
|00005c80| 53 50 59 7d 20 64 72 69 | 76 65 72 73 7d 5c 6c 61 |SPY} dri|vers}\la|
|00005c90| 62 65 6c 7b 73 65 63 3a | 64 72 69 76 65 72 73 7d |bel{sec:|drivers}|
|00005ca0| 0d 0a 7b 5c 63 65 6e 74 | 65 72 69 6e 67 5c 73 6c |..{\cent|ering\sl|
|00005cb0| 20 54 68 69 73 20 70 61 | 72 74 20 68 61 73 20 62 | This pa|rt has b|
|00005cc0| 65 65 6e 20 77 72 69 74 | 74 65 6e 20 62 79 20 4c |een writ|ten by L|
|00005cd0| 61 72 72 79 20 42 61 72 | 74 68 6f 6c 64 69 2e 7d |arry Bar|tholdi.}|
|00005ce0| 0d 0a 0d 0a 4f 6e 65 20 | 6f 6e 65 20 74 68 65 20 |....One |one the |
|00005cf0| 72 65 73 74 72 69 63 74 | 69 6f 6e 73 20 6f 66 20 |restrict|ions of |
|00005d00| 42 47 49 20 77 61 73 20 | 74 68 61 74 20 69 74 20 |BGI was |that it |
|00005d10| 63 6f 75 6c 64 20 68 61 | 6e 64 6c 65 20 64 69 73 |could ha|ndle dis|
|00005d20| 70 6c 61 79 73 2c 0d 0a | 62 75 74 20 6e 6f 74 20 |plays,..|but not |
|00005d30| 70 72 69 6e 74 65 72 73 | 5c 69 6e 64 65 78 7b 70 |printers|\index{p|
|00005d40| 72 69 6e 74 65 72 7d 2e | 20 54 6f 20 6f 76 65 72 |rinter}.| To over|
|00005d50| 63 6f 6d 65 20 74 68 69 | 73 20 6c 69 6d 69 74 61 |come thi|s limita|
|00005d60| 74 69 6f 6e 2c 20 73 6f | 6d 65 20 70 65 6f 70 6c |tion, so|me peopl|
|00005d70| 65 20 64 65 76 65 6c 6f | 70 65 64 0d 0a 60 60 70 |e develo|ped..``p|
|00005d80| 72 69 6e 74 65 72 20 70 | 61 63 6b 61 67 65 73 27 |rinter p|ackages'|
|00005d90| 27 20 66 6f 72 20 42 47 | 49 2e 20 41 6c 74 68 6f |' for BG|I. Altho|
|00005da0| 75 67 68 20 74 68 65 79 | 20 64 65 72 69 76 65 20 |ugh they| derive |
|00005db0| 66 72 6f 6d 20 61 20 72 | 65 61 6c 20 6e 65 65 64 |from a r|eal need|
|00005dc0| 2c 0d 0a 74 68 65 79 20 | 61 72 65 20 61 6c 6d 6f |,..they |are almo|
|00005dd0| 73 74 20 75 73 65 6c 65 | 73 73 20 69 6e 20 74 68 |st usele|ss in th|
|00005de0| 61 74 20 74 68 65 20 66 | 6f 72 63 65 20 61 20 63 |at the f|orce a c|
|00005df0| 6f 6d 70 6c 65 74 65 20 | 72 65 2d 77 72 69 74 65 |omplete |re-write|
|00005e00| 20 6f 66 20 74 68 65 0d | 0a 68 69 67 68 2d 6c 65 | of the.|.high-le|
|00005e10| 76 65 6c 20 63 6f 64 65 | 2c 20 6c 69 6e 6b 69 6e |vel code|, linkin|
|00005e20| 67 20 77 69 74 68 20 65 | 78 74 72 61 20 6c 69 62 |g with e|xtra lib|
|00005e30| 72 61 72 69 65 73 2c 20 | 65 74 63 2e 20 42 79 20 |raries, |etc. By |
|00005e40| 63 6f 6e 74 72 61 73 74 | 2c 20 74 68 65 0d 0a 73 |contrast|, the..s|
|00005e50| 6f 6c 75 74 69 6f 6e 20 | 49 20 70 72 6f 70 6f 73 |olution |I propos|
|00005e60| 65 20 69 73 20 61 20 73 | 69 6d 70 6c 65 20 60 60 |e is a s|imple ``|
|00005e70| 70 6c 75 67 2d 61 6e 64 | 2d 70 6c 61 79 5c 69 6e |plug-and|-play\in|
|00005e80| 64 65 78 7b 70 6c 75 67 | 2d 61 6e 64 2d 70 6c 61 |dex{plug|-and-pla|
|00005e90| 79 7d 27 27 3a 20 74 68 | 65 20 64 72 69 76 65 72 |y}'': th|e driver|
|00005ea0| 0d 0a 73 68 6f 75 6c 64 | 20 62 65 20 72 65 63 6f |..should| be reco|
|00005eb0| 67 69 6e 73 65 64 20 62 | 79 20 61 6e 79 20 73 79 |ginsed b|y any sy|
|00005ec0| 73 74 65 6d 20 75 73 69 | 6e 67 20 42 47 49 20 74 |stem usi|ng BGI t|
|00005ed0| 68 61 74 20 61 6c 6c 6f | 77 73 20 75 73 65 72 2d |hat allo|ws user-|
|00005ee0| 73 75 70 70 6c 69 65 64 | 0d 0a 64 72 69 76 65 72 |supplied|..driver|
|00005ef0| 73 5c 69 6e 64 65 78 7b | 64 72 69 76 65 72 73 21 |s\index{|drivers!|
|00005f00| 75 73 65 72 2d 73 75 70 | 70 6c 69 65 64 7d 20 74 |user-sup|plied} t|
|00005f10| 6f 20 62 65 20 69 6e 73 | 74 61 6c 6c 65 64 0d 0a |o be ins|talled..|
|00005f20| 28 73 65 65 20 7b 5c 74 | 74 20 49 4e 53 54 41 4c |(see {\t|t INSTAL|
|00005f30| 4c 2d 55 53 45 52 2d 44 | 52 49 56 45 52 5c 74 74 |L-USER-D|RIVER\tt|
|00005f40| 69 6e 64 65 78 7b 49 4e | 53 54 41 4c 4c 2d 55 53 |index{IN|STALL-US|
|00005f50| 45 52 2d 44 52 49 56 45 | 52 7d 7d 29 2e 0d 0a 54 |ER-DRIVE|R}})...T|
|00005f60| 68 65 20 70 72 69 63 65 | 20 74 6f 20 70 61 79 20 |he price| to pay |
|00005f70| 69 73 2c 20 6f 66 20 63 | 6f 75 72 73 65 2c 20 74 |is, of c|ourse, t|
|00005f80| 68 61 74 20 74 68 65 20 | 64 72 69 76 65 72 20 70 |hat the |driver p|
|00005f90| 72 6f 64 75 63 65 73 20 | 6f 6e 6c 79 20 50 6f 73 |roduces |only Pos|
|00005fa0| 74 53 63 72 69 70 74 5c | 69 6e 64 65 78 7b 50 6f |tScript\|index{Po|
|00005fb0| 73 74 53 63 72 69 70 74 | 7d 0d 0a 6f 75 74 70 75 |stScript|}..outpu|
|00005fc0| 74 2e 20 54 68 69 73 20 | 70 6f 73 74 53 63 72 69 |t. This |postScri|
|00005fd0| 70 74 20 63 61 6e 20 74 | 68 65 6e 20 62 65 20 73 |pt can t|hen be s|
|00005fe0| 65 6e 64 20 74 6f 20 61 | 20 6c 61 73 65 72 5c 69 |end to a| laser\i|
|00005ff0| 6e 64 65 78 7b 70 72 69 | 6e 74 65 72 21 6c 61 73 |ndex{pri|nter!las|
|00006000| 65 72 7d 20 70 72 69 6e | 74 65 72 2c 20 69 6e 73 |er} prin|ter, ins|
|00006010| 65 72 74 65 64 0d 0a 69 | 6e 20 61 20 74 65 78 74 |erted..i|n a text|
|00006020| 20 64 6f 63 75 6d 65 6e | 74 2c 20 6f 72 20 63 6f | documen|t, or co|
|00006030| 6e 76 65 72 74 65 64 20 | 74 6f 20 61 6e 6f 74 68 |nverted |to anoth|
|00006040| 65 72 20 66 6f 72 6d 61 | 74 20 6f 72 20 64 65 76 |er forma|t or dev|
|00006050| 69 63 65 2e 20 53 65 65 | 20 66 6f 72 0d 0a 69 6e |ice. See| for..in|
|00006060| 73 74 61 6e 63 65 20 47 | 4e 55 5c 69 6e 64 65 78 |stance G|NU\index|
|00006070| 7b 47 4e 55 7d 27 73 20 | 60 60 67 68 6f 73 74 73 |{GNU}'s |``ghosts|
|00006080| 63 72 69 70 74 5c 69 6e | 64 65 78 7b 67 68 6f 73 |cript\in|dex{ghos|
|00006090| 74 73 63 72 69 70 74 7d | 27 27 2e 0d 0a 0d 0a 54 |tscript}|''.....T|
|000060a0| 68 65 20 64 72 69 76 65 | 72 73 20 61 72 65 20 77 |he drive|rs are w|
|000060b0| 72 69 74 74 65 6e 20 69 | 6e 20 43 2e 20 54 68 69 |ritten i|n C. Thi|
|000060c0| 73 20 6d 61 6b 65 73 20 | 74 68 65 6d 20 76 65 72 |s makes |them ver|
|000060d0| 79 20 65 61 73 79 20 74 | 6f 20 63 68 61 6e 67 65 |y easy t|o change|
|000060e0| 2c 0d 0a 77 68 69 6c 65 | 20 72 65 71 75 69 72 69 |,..while| requiri|
|000060f0| 6e 67 20 76 65 72 79 20 | 6c 69 74 74 6c 65 20 65 |ng very |little e|
|00006100| 78 74 72 61 20 73 70 61 | 63 65 2e 20 41 6e 20 69 |xtra spa|ce. An i|
|00006110| 6e 74 65 72 66 61 63 65 | 20 74 6f 20 74 68 65 20 |nterface| to the |
|00006120| 43 20 63 6f 64 65 2c 0d | 0a 77 72 69 74 74 65 6e |C code,.|.written|
|00006130| 20 69 6e 20 61 73 73 65 | 6d 62 6c 79 20 6c 61 6e | in asse|mbly lan|
|00006140| 67 75 61 67 65 20 69 73 | 20 70 72 6f 76 69 64 65 |guage is| provide|
|00006150| 64 2e 20 55 73 65 72 73 | 20 61 72 65 20 66 72 65 |d. Users| are fre|
|00006160| 65 20 74 6f 20 77 72 69 | 74 65 20 74 68 65 69 72 |e to wri|te their|
|00006170| 0d 0a 6f 77 6e 20 42 47 | 49 20 64 72 69 76 65 72 |..own BG|I driver|
|00006180| 73 20 75 73 69 6e 67 20 | 74 68 69 73 20 73 79 73 |s using |this sys|
|00006190| 74 65 6d 2e 0d 0a 0d 0a | 5c 73 75 62 73 65 63 74 |tem.....|\subsect|
|000061a0| 69 6f 6e 7b 48 6f 77 20 | 74 6f 20 75 73 65 20 53 |ion{How |to use S|
|000061b0| 50 59 7d 0d 0a 53 50 59 | 20 69 73 20 72 65 61 6c |PY}..SPY| is real|
|000061c0| 6c 79 20 61 20 76 65 72 | 79 20 73 69 6d 70 6c 65 |ly a ver|y simple|
|000061d0| 20 64 72 69 76 65 72 2c | 20 74 68 61 74 20 77 61 | driver,| that wa|
|000061e0| 73 20 77 72 69 74 74 65 | 6e 20 6d 6f 73 74 6c 79 |s writte|n mostly|
|000061f0| 20 74 6f 20 64 65 62 75 | 67 0d 0a 74 68 65 20 43 | to debu|g..the C|
|00006200| 20 69 6e 74 65 72 66 61 | 63 69 6e 67 20 28 77 68 | interfa|cing (wh|
|00006210| 65 6e 63 65 20 74 68 65 | 20 6e 61 6d 65 29 2e 20 |ence the| name). |
|00006220| 49 74 20 68 61 73 20 6f | 6e 6c 79 20 6f 6e 65 20 |It has o|nly one |
|00006230| 6d 6f 64 65 5c 69 6e 64 | 65 78 7b 6d 6f 64 65 21 |mode\ind|ex{mode!|
|00006240| 53 50 59 7d 2c 20 31 20 | 63 6f 6c 6f 72 5c 69 6e |SPY}, 1 |color\in|
|00006250| 64 65 78 7b 63 6f 6c 6f | 72 7d 0d 0a 28 72 65 61 |dex{colo|r}..(rea|
|00006260| 6c 6c 79 20 74 77 6f 2d | 2d 2d 62 6c 61 63 6b 20 |lly two-|--black |
|00006270| 61 6e 64 20 77 68 69 74 | 65 29 20 61 6e 64 20 61 |and whit|e) and a|
|00006280| 20 66 69 63 74 69 76 65 | 20 72 65 73 6f 6c 75 74 | fictive| resolut|
|00006290| 69 6f 6e 5c 69 6e 64 65 | 78 7b 72 65 73 6f 6c 75 |ion\inde|x{resolu|
|000062a0| 74 69 6f 6e 7d 20 6f 66 | 20 24 31 30 30 5c 74 69 |tion} of| $100\ti|
|000062b0| 6d 65 73 31 30 30 24 2e | 0d 0a 41 6c 6c 20 69 74 |mes100$.|..All it|
|000062c0| 20 64 6f 65 73 20 69 73 | 20 77 72 69 74 65 20 74 | does is| write t|
|000062d0| 68 65 20 67 72 61 70 68 | 69 63 73 20 72 65 71 75 |he graph|ics requ|
|000062e0| 65 73 74 73 20 69 74 20 | 72 65 63 65 69 76 65 73 |ests it |receives|
|000062f0| 20 74 6f 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | to the |standard|
|00006300| 0d 0a 6f 75 74 70 75 74 | 2e 0d 0a 0d 0a 5c 73 75 |..output|.....\su|
|00006310| 62 73 65 63 74 69 6f 6e | 7b 48 6f 77 20 74 6f 20 |bsection|{How to |
|00006320| 75 73 65 20 50 53 7d 0d | 0a 50 53 20 62 61 73 69 |use PS}.|.PS basi|
|00006330| 63 61 6c 6c 79 20 6f 70 | 65 72 61 74 65 73 20 6c |cally op|erates l|
|00006340| 69 6b 65 20 53 50 59 3a | 20 69 74 20 74 72 61 6e |ike SPY:| it tran|
|00006350| 73 6c 61 74 65 73 20 67 | 72 61 70 68 69 63 73 20 |slates g|raphics |
|00006360| 72 65 71 75 65 73 74 73 | 20 74 6f 0d 0a 74 65 78 |requests| to..tex|
|00006370| 74 2c 20 77 68 69 63 68 | 20 69 74 20 74 68 65 6e |t, which| it then|
|00006380| 20 77 72 69 74 65 73 20 | 74 6f 20 61 20 66 69 6c | writes |to a fil|
|00006390| 65 20 28 6f 72 20 74 68 | 65 20 73 74 61 6e 64 61 |e (or th|e standa|
|000063a0| 72 64 20 6f 75 74 70 75 | 74 20 69 66 20 6e 6f 6e |rd outpu|t if non|
|000063b0| 65 0d 0a 69 73 20 73 70 | 65 63 69 66 69 65 64 29 |e..is sp|ecified)|
|000063c0| 2e 20 54 68 65 20 65 6e | 76 69 72 6f 6e 6d 65 6e |. The en|vironmen|
|000063d0| 74 5c 69 6e 64 65 78 7b | 65 6e 76 69 72 6f 6e 6d |t\index{|environm|
|000063e0| 65 6e 74 7d 20 76 61 72 | 69 61 62 6c 65 20 60 60 |ent} var|iable ``|
|000063f0| 5c 76 65 72 62 2b 50 53 | 24 2b 5c 69 6e 64 65 78 |\verb+PS|$+\index|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.